/* StudiMed Application Manager - Frontend Styles */

:root {
    --studimed-green: #61bb46;
    --studimed-green-dark: #57a038;
    --studimed-red: #ff6955;
    --studimed-ink: #1e1e1e;
    --studimed-muted: #575757;
    --studimed-bg: #f2efef;
    --studimed-card: #ffffff;
    --studimed-shadow: 0 20px 40px rgba(30, 30, 30, 0.08);
}

.sm-ap-btn {
    padding: 8px 24px;
}

.studimed-app-login,
.studimed-app-cockpit {
    position: relative;
    margin: 40px auto;
    padding: 24px;
    font-family: Avenir, fallback-arial, Arial, sans-serif;
    color: var(--studimed-ink);
}

.studimed-app-form .form-group {
    margin-bottom: 20px;
}

.studimed-app-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--studimed-muted);
}

.acf-field[data-name="ref"] {
    display: none;
}

.studimed-app-form .form-control {
    width: 100%;
    padding: 25px 16px;
    border: 1px solid rgba(30, 30, 30, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.studimed-app-form .form-control:focus {
    outline: none;
    border-color: var(--studimed-green);
    box-shadow: 0 0 0 3px rgba(126, 198, 0, 0.18);
}

.studimed-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
.studimed-app-page-header {
    margin-bottom: 18px;
}
.studimed-app-page-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    color: var(--studimed-ink);
}
.studimed-app-page-header p {
    margin: 0;
    color: var(--studimed-muted);
}
    gap: 8px;
    padding: 12px 28px;
    background: var(--studimed-green);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.studimed-app-header-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.studimed-app-subtitle {
    margin: 0;
    color: var(--studimed-muted);
}

.studimed-app-contact {
    background: var(--studimed-green);
    border-radius: 12px;
    padding: 18px 20px;
    color: #121212;
    margin-top: 18px;
    max-width: 420px;
}
.studimed-app-contact p {
    margin: 8px 0 0;
}
.studimed-app-link {
    color: var(--studimed-ink);
    text-decoration: none;
    font-weight: 500;
}

.studimed-app-link:hover {
    text-decoration: underline;
}

.studimed-app-error {
    background: #fff1f2;
    border-left: 4px solid var(--studimed-red);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: #9b111d;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: var(--studimed-green);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Cockpit Header */
.studimed-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(30, 30, 30, 0.1);
}

.studimed-app-header h2 {
    margin: 0;
    color: var(--studimed-ink);
}

.studimed-app-logout {
    color: var(--studimed-red);
    text-decoration: none;
    font-weight: 600;
}

.studimed-app-logout:hover {
    text-decoration: underline;
}

/* Navigation */
.studimed-app-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(30, 30, 30, 0.08);
}

.studimed-app-nav a {
    padding: 10px 18px;
    color: var(--studimed-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
}

.studimed-app-nav a:hover {
    background: rgba(126, 198, 0, 0.12);
    color: var(--studimed-ink);
}

.studimed-app-nav a.active {
    background: var(--studimed-green);
    color: #ffffff;
}

/* Hero */
.studimed-app-hero {
    background: linear-gradient(120deg, rgba(126, 198, 0, 0.16), rgba(255, 255, 255, 0.8));
    border-radius: 22px;
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(30, 30, 30, 0.06);
}

.studimed-app-hero-inner {
    max-width: 560px;
}

.studimed-app-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--studimed-muted);
    margin: 0 0 8px;
}

.studimed-app-hero h2 {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--studimed-ink);
}

.studimed-app-hero-actions {
    margin-top: 12px;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    margin: 20px 0;
}

.status-badge.status-awaiting_documents {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-documents_received {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-in_progress {
    background: #eef5e6;
    color: var(--studimed-green-dark);
}

.status-badge.status-submitted {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-accepted {
    background: #c3e6cb;
    color: #155724;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Application Info */
.application-info {
    margin: 20px 0;
    line-height: 1.8;
}

.application-info p {
    margin: 10px 0;
}

/* Activity Log */
.activity-log {
    border-left: 2px solid var(--studimed-green);
    padding-left: 20px;
}

.log-entry {
    margin: 15px 0;
    padding: 12px;
    background: var(--studimed-bg);
    border-radius: 8px;
}

.log-time {
    display: block;
    font-size: 12px;
    color: #939191;
    margin-bottom: 5px;
}

.log-message {
    display: block;
    color: var(--studimed-muted);
}

/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
}

.documents-list li {
    margin: 10px 0;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--studimed-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--studimed-ink);
    transition: all 0.2s;
}

.document-link:hover {
    background: #e7e7e7;
    transform: translateX(4px);
}

.document-icon {
    font-size: 24px;
}

.studimed-questions {
    display: inline-block;
    background-color: var(--awb-color1);
    padding: 1rem;
    border-radius: 4px;
}
.studimed-questions a, .studimed-questions a:hover {
    color: var(--studimed-ink);
}

#sm-ap-application-form input, #sm-ap-application-form textarea {
    border-radius: 6px;
    line-height: 1.5;
    padding: 20px 12px;
    color: black;
}

#sm-ap-application-form input[type=submit], #sm-ap-application-form input[type=button] {
    padding: 13px 29px;
    background-color: var(--awb-color4);
    color: white;
    border: none;
    cursor: pointer;
}

#sm-ap-application-form input[type=submit]:hover, #sm-ap-application-form input[type=button]:hover {
    background-color: var(--awb-color5);
}

#sm-ap-application-form textarea {
    padding: 8px 12px;
}

.acf-field-app-accept-agb .acf-required, .acf-field-app-accept-privacy .acf-required, .acf-field-app-accept-withdrawal .acf-required, .acf-field-app-accept-pricings .acf-required {
    visibility: hidden;
}

.acf-field-app-accept-agb .message:after, .acf-field-app-accept-privacy .message:after, .acf-field-app-accept-withdrawal .message:after, .acf-field-app-accept-pricings .message:after {
    content: ' *';
    color: red;
}

/* Responsive */
@media (max-width: 768px) {
    .studimed-app-login,
    .studimed-app-cockpit {
        padding: 12px;
    }

    .studimed-app-card {
        padding: 22px;
    }

    .studimed-app-nav {
        flex-direction: column;
    }

    .studimed-app-nav a {
        text-align: center;
    }
}