/* Modern Observer Panel Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: #ffffff;
    color: #2c3e50;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #3498db;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .user-info span {
    font-size: 16px;
}

.header a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    background: #e74c3c;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.header a:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.card-content {
    margin-top: 20px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Sections */
.section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.section h2 {
    color: #2c3e50;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-size: 26px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #3498db;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: block;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-assigned {
    background: #f39c12;
    color: white;
}

.status-not-assigned {
    background: #95a5a6;
    color: white;
}

.status-accepted {
    background: #27ae60;
    color: white;
}

.status-rejected {
    background: #e74c3c;
    color: white;
}

/* Info Box */
.info-box {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.info-box strong {
    color: #3498db;
}

/* Center Details */
.center-details {
    margin-top: 20px;
}

.center-details p {
    margin: 12px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.center-details strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 150px;
    font-weight: 600;
}

/* Error/Success Messages */
.error-message,
.success-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: none;
}

.error-message {
    background: #fee;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: #ecf0f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab:hover {
    background: #d5dbdb;
}

.tab.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Password Requirements */
.password-requirements {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .section {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.section {
    animation: fadeIn 0.5s ease-out;
}

/* —— Observer dashboard (2026 refresh) —— */
.obs-dashboard-body {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 35%, #f1f5f9 100%);
    min-height: 100vh;
}

.obs-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 32px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}

.obs-dash-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.obs-dash-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.obs-dash-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.obs-dash-sub {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 2px;
}

.obs-dash-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.obs-dash-greet {
    font-size: 0.95rem;
}

.obs-dash-logout {
    background: rgba(248, 250, 252, 0.12);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.obs-dash-logout:hover {
    background: rgba(248, 250, 252, 0.22);
}

.obs-dash-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.obs-dash-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.obs-feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px 22px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.obs-feature-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.obs-feature-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.obs-feature-card__badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
}

.obs-feature-card__badge--indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.obs-feature-card__badge--violet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.obs-feature-card__badge--amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.obs-feature-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.obs-feature-card__sub {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.obs-feature-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.obs-resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.obs-resource-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.obs-resource-item__text {
    min-width: 0;
}

.obs-resource-item__title {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.obs-resource-item__desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.obs-btn-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: #0f172a;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.obs-btn-download:hover {
    background: #334155;
}

.obs-assignment-hero {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #5b21b6 100%);
    color: #f5f3ff;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 28px;
    box-shadow: 0 24px 50px rgba(76, 29, 149, 0.35);
}

.obs-assignment-hero-inner {
    background: rgba(15, 23, 42, 0.35);
    border-radius: 18px;
    padding: 28px 28px 32px;
    backdrop-filter: blur(8px);
}

.obs-assignment-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #fbbf24;
    color: #422006;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.obs-assignment-heading {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.obs-assignment-lead {
    margin: 0 0 22px;
    opacity: 0.92;
    line-height: 1.55;
    max-width: 42rem;
}

.obs-assignment-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.obs-assignment-dl dt {
    margin: 0;
    opacity: 0.75;
    font-weight: 600;
}

.obs-assignment-dl dd {
    margin: 0;
    font-weight: 600;
}

.obs-assignment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.obs-btn {
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.obs-btn:active {
    transform: scale(0.98);
}

.obs-btn-accept {
    background: #22c55e;
    color: #052e16;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.obs-btn-accept:hover {
    background: #16a34a;
    color: #fff;
}

.obs-btn-reject {
    background: rgba(248, 250, 252, 0.15);
    color: #fff;
    border: 1px solid rgba(248, 250, 252, 0.35);
}

.obs-btn-reject:hover {
    background: rgba(248, 250, 252, 0.25);
}

.obs-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.obs-card-wide {
    max-width: 100%;
}

.obs-card-muted {
    background: #f8fafc;
    border-style: dashed;
}

.obs-card-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 10px;
}

.obs-card-body {
    margin: 0;
    line-height: 1.5;
}

.obs-muted {
    color: #64748b;
}

.obs-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
}

.obs-hint-warn {
    color: #9a3412;
    background: #ffedd5;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fdba74;
}

.obs-dash-grid {
    display: grid;
    gap: 20px;
}

.obs-quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.obs-link-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.obs-link-tile:hover {
    filter: brightness(1.06);
}

.obs-link-tile-disabled {
    cursor: default;
    opacity: 0.85;
    background: #94a3b8;
    filter: none;
    text-align: center;
}

.obs-link-tile-disabled:hover {
    filter: none;
}

.obs-readonly-dl {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 8px 20px;
    margin: 0 0 28px;
}

.obs-readonly-dl dt {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.obs-readonly-dl dd {
    margin: 0;
    font-weight: 500;
    color: #1e293b;
}

.obs-portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.obs-status-row {
    margin-bottom: 12px;
}

.obs-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.obs-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.obs-summary-list li:last-child {
    border-bottom: none;
}

.obs-summary-list span {
    color: #64748b;
}

.obs-summary-list strong {
    color: #0f172a;
    text-align: right;
    font-weight: 600;
}

@media (max-width: 640px) {
    .obs-assignment-dl {
        grid-template-columns: 1fr;
    }
    .obs-summary-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .obs-summary-list strong {
        text-align: left;
    }
}

.obs-profile-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
/* Observer public login uses observer/assets/css/observer_login.css only. */

.obs-readonly-box {
    padding: 10px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 20px;
    font-weight: 500;
}
.obs-field-locked, input.obs-field-locked, select.obs-field-locked, textarea.obs-field-locked {
    background: #f8fafc !important;
    color: #475569;
    cursor: not-allowed;
}
.obs-attach-wizard-top {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.obs-attach-wizard-top h2 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #0f172a;
}
.obs-attach-step-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}
.obs-attach-gate {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
}
.obs-attach-gate a {
    color: #b45309;
    font-weight: 600;
}
.obs-attach-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}
.obs-attach-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.obs-doc-panel.obs-doc-locked {
    opacity: 0.45;
    pointer-events: none;
}
.obs-reject-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.obs-reject-modal-overlay.obs-open {
    display: flex;
}
.obs-reject-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 440px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}
.obs-reject-modal h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #0f172a;
}
.obs-reject-modal .obs-reject-label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.obs-reject-modal select {
    width: 100%;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}
.obs-reject-remark-wrap {
    margin-top: 4px;
}
.obs-reject-modal textarea {
    width: 100%;
    min-height: 100px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}
.obs-reject-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}
.obs-reject-modal .obs-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.obs-reject-modal .obs-btn-cancel {
    background: #e2e8f0;
    color: #334155;
}
.obs-reject-modal .obs-btn-submit {
    background: #dc2626;
    color: #fff;
}

@keyframes obsAppendix13bGlow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(52, 211, 153, 0.45),
            0 0 14px rgba(45, 212, 191, 0.4);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(16, 185, 129, 0.75),
            0 0 26px rgba(52, 211, 153, 0.55);
    }
}

.obs-link-tile.obs-appendix-13b-glow {
    background: linear-gradient(135deg, #0d9488, #14b8a6, #2dd4bf);
    animation: obsAppendix13bGlow 2.5s ease-in-out infinite;
    scroll-margin-top: 100px;
}

.obs-link-tile.obs-appendix-13b-glow:hover {
    filter: brightness(1.08);
}

.obs-appendix-13b-section {
    scroll-margin-top: 96px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    box-shadow: 0 4px 24px rgba(13, 148, 136, 0.08);
}

.obs-appendix-subtitle {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #0f766e;
}

.obs-appendix-file-input {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.obs-appendix-current-body {
    padding: 12px 0 0;
}

.obs-appendix-meta {
    font-size: 14px;
    color: #334155;
    margin: 0 0 12px;
}
