/* ==========================================================================
   SmartHR Coaching - Admin Pages Styles
   ========================================================================== */

/* Admin Layout
   ========================================================================== */
.admin-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

.admin-container {
    margin: 0 auto;
    max-width: 1440px;
    padding: 16px 24px;
}

/* Breadcrumb
   ========================================================================== */
.breadcrumb {
    align-items: center;
    color: var(--gray-500);
    display: flex;
    font-size: 13px;
    gap: 8px;
    margin: 0 auto;
    max-width: 1440px;
    padding: 16px 24px 0;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--gray-300);
}

/* Page Header
   ========================================================================== */
.page-header-section {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header-content {
    flex: 1;
}

.page-title {
    color: var(--gray-900);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--gray-900);
    font-size: 14px;
}

/* Content Cards
   ========================================================================== */
.content-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

.card-header {
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.card-icon-wrapper {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: white;
    display: flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.card-icon-wrapper .material-icons {
    font-size: 18px;
}

.card-title {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
}

/* Section Styles
   ========================================================================== */
.section-title {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subsection-title {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Status Badges
   ========================================================================== */
.review-badge {
    align-items: center;
    background: var(--orange);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    gap: 6px;
    padding: 6px 12px;
}

.review-badge .material-icons {
    font-size: 14px;
}

.review-badge-pending { background: var(--warning); }
.review-badge-review { background: var(--primary); }
.review-badge-approved { background: var(--success); }
.review-badge-rejected { background: var(--danger); }
.review-badge-info { background: #7c3aed; }
.review-badge-resubmitted { background: var(--blue-accent); }
.review-badge-verified { background: var(--success); }

/* Status Messages
   ========================================================================== */
.status-message {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    padding: 12px 18px;
}

.status-message.status-approved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.status-message.status-rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.status-message .material-icons {
    font-size: 20px;
}

/* Action Buttons
   ========================================================================== */
.action-buttons-section {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: -68px;
    margin-top: 10px;
}

.btn-action {
    align-items: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    line-height: 1;
    min-height: 32px;
    padding: 4px 10px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-action .material-icons {
    font-size: 16px;
}

.btn-action :where(span, div) {
    line-height: 1;
}

.btn-info {
    background: white;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    color: var(--gray-700);
}

.btn-info:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-reject {
    background: var(--danger);
    box-shadow: var(--shadow-sm);
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-approve {
    background: var(--success);
    box-shadow: var(--shadow-sm);
    color: white;
}

.btn-approve:hover {
    background: #059669;
}

/* DevExpress Button Icon Styling */
.btn-action .dx-button-content {
    align-items: center;
    display: inline-flex !important;
    gap: 6px;
    line-height: 1;
}

.btn-info .dx-button-content::before {
    content: "info";
    font-family: 'Material Icons';
    font-size: 16px;
    line-height: 1;
}

.btn-reject .dx-button-content::before {
    content: "close";
    font-family: 'Material Icons';
    font-size: 16px;
    line-height: 1;
}

.btn-approve .dx-button-content::before {
    content: "check";
    font-family: 'Material Icons';
    font-size: 16px;
    line-height: 1;
}

/* Timeline
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    gap: 10px;
    position: relative;
}

.timeline-dot {
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-light);
    flex-shrink: 0;
    height: 10px;
    margin-top: 3px;
    position: relative;
    width: 10px;
    z-index: 2;
}

.timeline-item:not(:last-child)::after {
    background: var(--gray-200);
    bottom: -12px;
    content: '';
    left: 3px;
    position: absolute;
    top: 14px;
    width: 2px;
}

.timeline-content {
    flex: 1;
}

.timeline-time {
    color: var(--gray-900);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-text {
    color: var(--gray-700);
    font-size: 12px;
    line-height: 1.5;
}

.timeline-text strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Checklist
   ========================================================================== */
.review-checklist {
    margin-bottom: 16px;
}

.checklist-item {
    align-items: center;
    background: var(--gray-50);
    border-radius: 6px;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 10px;
    transition: background 0.2s;
}

.checklist-item:hover {
    background: var(--primary-light);
}

.checklist-checkbox {
    accent-color: var(--primary);
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.checklist-label {
    color: var(--gray-700);
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

/* Documents
   ========================================================================== */
.documents-section {
    padding-top: 4px;
}

.document-group {
    margin-bottom: 16px;
}

.document-group:last-child {
    margin-bottom: 0;
}

.document-group-title {
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.document-group-title .material-icons {
    color: var(--primary);
    font-size: 18px;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.document-item {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 12px;
    transition: all 0.2s;
}

.document-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 90, 131, 0.12);
    transform: translateX(2px);
}

.doc-icon {
    color: var(--primary);
    flex-shrink: 0;
    font-size: 20px;
}

.document-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.document-name {
    color: var(--gray-900);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-size {
    color: var(--gray-500);
    font-size: 11px;
}

.no-documents {
    align-items: center;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.no-documents .material-icons {
    font-size: 32px;
    margin-bottom: 8px;
}

.no-documents p {
    font-size: 12px;
    margin: 0;
}

/* Video
   ========================================================================== */
.video-card {
    height: fit-content;
}

.video-container {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    max-height: 240px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.intro-video {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.video-overlay {
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    bottom: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

.loading-text {
    color: white;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

.video-error {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    color: white;
    left: 50%;
    max-width: 260px;
    padding: 20px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.video-error .material-icons {
    color: var(--danger);
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
}

.video-error p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.no-video {
    align-items: center;
    color: var(--gray-400);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
}

.no-video .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Loading State
   ========================================================================== */
.loading-container {
    align-items: center;
    color: var(--gray-600);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    animation: spin 1s linear infinite;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary);
    height: 48px;
    margin-bottom: 16px;
    width: 48px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast/Success Message
   ========================================================================== */
.success-message {
    align-items: center;
    animation: slideIn 0.3s ease-out;
    background: var(--success);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    color: white;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    padding: 12px 20px;
    position: fixed;
    right: 24px;
    top: 70px;
    z-index: 1001;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PDF Viewer
   ========================================================================== */
.pdf-window-body {
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
}

.pdf-viewer-container {
    display: flex;
    flex-direction: column;
    height: calc(90vh - 140px);
    min-height: 500px;
    width: 100%;
}

.pdf-viewer-component {
    flex: 1;
    height: 100%;
    width: 100%;
}

/* ==========================================================================
   Coach Application Review Page
   ========================================================================== */

/* Application Layout */
.application-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: 280px 1fr 1fr;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.main-content {
    order: 2;
}

.side-content {
    display: contents;
}

.side-column-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 1;
    width: 280px;
}

.side-column-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 3;
}

/* Main Application Card */
.application-main-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.applicant-header {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(0, 90, 131, 0.04) 0%, rgba(0, 150, 200, 0.02) 100%);
    border-bottom: 1px solid var(--gray-100);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    margin: -20px -20px 0;
    padding: 20px;
}

.applicant-info-section {
    align-items: flex-start;
    display: flex;
    gap: 16px;
}

.applicant-avatar-large {
    align-items: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 90, 131, 0.25);
    color: white;
    display: flex;
    font-size: 20px;
    font-weight: 600;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.applicant-details {
    flex: 1;
}

.applicant-name {
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 6px;
}

.contact-info .separator {
    margin: 0 8px;
}

/* Section Styles */
.coaching-section,
.bio-section,
.outcomes-section {
    border-bottom: 1px solid var(--gray-100);
    padding: 12px 0;
}

.section-meta {
    align-items: center;
    display: flex;
    gap: 8px;
}

.meta-label {
    color: var(--gray-500);
    font-size: 13px;
}

.meta-date {
    color: var(--gray-900);
    font-size: 13px;
    font-weight: 500;
}

.bio-text {
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Outcome Buttons */
.outcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outcome-button {
    align-items: center;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    transition: all 0.2s;
}

.outcome-button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.outcome-button:hover .outcome-text {
    color: var(--primary);
}

.outcome-button:hover .material-icons {
    color: var(--primary);
}

.outcome-text {
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
}

.outcome-button .material-icons {
    color: var(--gray-400);
    font-size: 18px;
    transition: color 0.2s;
}

/* Info Grid */
.info-grid-section {
    padding-top: 12px;
}

.info-grid-row {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.info-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-label {
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.grid-value {
    color: var(--gray-900);
    font-size: 13px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1400px) {
    .application-layout {
        grid-template-columns: 1fr 1fr;
    }

    .side-column-left {
        display: none;
    }

    .main-content {
        order: 1;
    }

    .side-column-right {
        order: 2;
    }
}

@media (max-width: 900px) {
    .application-layout {
        grid-template-columns: 1fr;
    }

    .side-content {
        display: block;
    }

    .side-column-right {
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .document-item {
        padding: 12px;
    }

    .document-name {
        font-size: 13px;
    }
}

