﻿/* =====================================================
   GUTO SPINOZA - PERSONAL TRAINER
   Student Dashboard
   ===================================================== */

.dashboard-body {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Dashboard Header */
.dash-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(201, 165, 78, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dash-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-user-menu {
    position: relative;
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.dash-user-info:hover {
    background: rgba(201, 165, 78, 0.08);
}

.dash-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a54e, #a88a3d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    font-size: 16px;
    overflow: hidden;
}

.dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.dash-arrow {
    color: #888888;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.dash-arrow.rotated {
    transform: rotate(180deg);
}

/* Dropdown */
.dash-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(201, 165, 78, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.25s ease;
}

.dash-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dash-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #cccccc;
    font-size: 13px;
    transition: all 0.2s;
}

.dash-dropdown a:hover {
    background: rgba(201, 165, 78, 0.1);
    color: #c9a54e;
}

.dash-dropdown a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

.logout-link:hover {
    color: #ff6b6b !important;
}

/* Flash Messages */
.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 22px;
    border-radius: 12px;
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: flashIn 0.4s ease;
}

.flash-success {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.flash-error {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* Main Content */
.dash-main {
    padding: 40px 0 80px;
}

/* Welcome */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.dash-welcome h1 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 8px;
}

.dash-welcome p {
    color: #888888;
    font-size: 15px;
}

.dash-welcome-date {
    color: #888888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-welcome-date i {
    color: #c9a54e;
}

/* Stats Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.dash-stat-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.dash-stat-card:hover {
    border-color: rgba(201, 165, 78, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dash-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dash-stat-label {
    display: block;
    font-size: 12px;
    color: #888888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dash-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.status-ativo { color: #25D366; }
.status-inativo { color: #ff6b6b; }
.status-pendente { color: #f39c12; }

/* Section Titles */
.dash-section {
    margin-bottom: 50px;
}

.dash-section-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-section-title i {
    color: #c9a54e;
    font-size: 18px;
}

/* Actions Grid */
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dash-action-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.dash-action-card:hover {
    border-color: rgba(201, 165, 78, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dash-action-card:hover .action-icon {
    background: linear-gradient(135deg, #c9a54e, #a88a3d);
    color: #111111;
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgba(201, 165, 78, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c9a54e;
    transition: all 0.3s ease;
}

.dash-action-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dash-action-card p {
    color: #888888;
    font-size: 13px;
    line-height: 1.5;
}

/* Info Panel */
.dash-info-panel {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background: rgba(201, 165, 78, 0.04);
}

.info-label {
    color: #888888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label i {
    color: #c9a54e;
    width: 16px;
    text-align: center;
}

.info-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Dashboard Footer */
.dash-footer {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.dash-footer p {
    color: #888888;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ==================== DASHBOARD NAV ==================== */
.dash-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #888888;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.dash-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dash-nav-link.active {
    color: #c9a54e;
    background: rgba(201, 165, 78, 0.1);
}

.dash-nav-link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* ==================== BUTTONS ==================== */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.dash-btn-gold {
    background: linear-gradient(135deg, #c9a54e, #a88a3d);
    color: #111111;
}

.dash-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 78, 0.4);
}

.dash-btn-outline {
    background: transparent;
    border: 1px solid rgba(201, 165, 78, 0.4);
    color: #c9a54e;
}

.dash-btn-outline:hover {
    background: rgba(201, 165, 78, 0.1);
    border-color: #c9a54e;
}

.dash-btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.dash-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.8);
    color: #cccccc;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.dash-btn-icon:hover {
    border-color: rgba(201, 165, 78, 0.4);
    color: #c9a54e;
}

/* ==================== PAGE HEADER ==================== */
.dash-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.dash-page-header-left h1 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 6px;
}

.dash-page-header-left p {
    color: #888888;
    font-size: 14px;
}

.dash-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c9a54e;
    font-size: 13px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dash-back-link:hover {
    color: #dfc068;
    gap: 10px;
}

.dash-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

/* ==================== MEUS TREINOS PAGE ==================== */

/* Featured / Treino Atual */
.treino-destaque {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(201, 165, 78, 0.25);
    border-radius: 16px;
    padding: 35px 32px;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
}

.treino-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a54e, #dfc068, #c9a54e);
}

.treino-destaque-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 165, 78, 0.15);
    color: #c9a54e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.treino-destaque h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 10px;
}

.treino-destaque-desc {
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 700px;
}

.treino-destaque-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.treino-destaque-meta {
    display: flex;
    gap: 24px;
}

.dash-mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888888;
    font-size: 13px;
}

.dash-mini-stat i {
    color: #c9a54e;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.treino-destaque-actions {
    display: flex;
    gap: 10px;
}

/* Treinos List */
.treinos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.treino-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 16px;
}

.treino-card:hover {
    border-color: rgba(201, 165, 78, 0.25);
    background: rgba(24, 24, 24, 0.9);
    transform: translateX(4px);
}

.treino-card-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.treino-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201, 165, 78, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a54e;
    font-size: 18px;
    flex-shrink: 0;
}

.treino-card-info {
    min-width: 0;
}

.treino-card-info h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.treino-card-info p {
    color: #888888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.treino-card-info p i {
    color: #666666;
    font-size: 11px;
}

.treino-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Empty State */
.dash-empty-state {
    text-align: center;
    padding: 80px 30px;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.dash-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(201, 165, 78, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-empty-icon i {
    font-size: 32px;
    color: #c9a54e;
}

.dash-empty-state h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 8px;
}

.dash-empty-state p {
    color: #888888;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ==================== TREINO DETAIL PAGE ==================== */
.treino-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.treino-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.treino-info-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.treino-info-card i {
    color: #c9a54e;
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.treino-info-label {
    display: block;
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.treino-info-card strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

/* Detail Card */
.treino-detail-card {
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.treino-detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.treino-detail-card-header h2 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.treino-detail-card-header h2 i {
    color: #c9a54e;
    font-size: 16px;
}

.treino-detail-card-body {
    padding: 24px;
}

.treino-descricao-text {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.8;
}

/* PDF Viewer */
.treino-pdf-viewer {
    border-radius: 8px;
    overflow: hidden;
}

.treino-pdf-fallback {
    margin-top: 12px;
    text-align: center;
}

.treino-pdf-fallback p {
    color: #888888;
    font-size: 13px;
}

.treino-pdf-fallback a {
    color: #c9a54e;
    text-decoration: underline;
}

.treino-pdf-fallback a:hover {
    color: #dfc068;
}

/* Image Viewer */
.treino-image-viewer {
    text-align: center;
}

.treino-image-viewer img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* File Download Block */
.treino-file-download {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.treino-file-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(201, 165, 78, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c9a54e;
    flex-shrink: 0;
}

.treino-file-info {
    flex: 1;
}

.treino-file-info strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 4px;
}

.treino-file-info span {
    color: #888888;
    font-size: 12px;
}

/* Sidebar Navigation */
.treino-nav-body {
    padding: 0 !important;
}

.treino-nav-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    text-decoration: none;
}

a.treino-nav-link:hover {
    background: rgba(201, 165, 78, 0.05);
}

.treino-nav-link:last-child {
    border-bottom: none;
}

.treino-nav-disabled {
    opacity: 0.4;
    cursor: default;
}

.treino-nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c9a54e;
    margin-bottom: 4px;
}

.treino-nav-title {
    display: block;
    color: #cccccc;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.treino-nav-disabled .treino-nav-title {
    color: #666666;
}

/* Action Items */
.treino-actions-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.treino-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #cccccc;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.treino-action-item:hover {
    background: rgba(201, 165, 78, 0.08);
    color: #c9a54e;
}

.treino-action-item i {
    width: 18px;
    text-align: center;
    color: #c9a54e;
    font-size: 14px;
}

/* ==================== DASHBOARD RESPONSIVE ==================== */
@media (max-width: 992px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .treino-detail-grid {
        grid-template-columns: 1fr;
    }
    .treino-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dash-welcome h1 {
        font-size: 28px;
    }
    .dash-user-name {
        display: none;
    }
    .dash-nav-link span {
        display: none;
    }
    .dash-nav {
        gap: 2px;
    }
    .dash-nav-link {
        padding: 10px 12px;
    }
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-actions-grid {
        grid-template-columns: 1fr;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .dash-page-header {
        flex-direction: column;
    }
    .treino-destaque h2 {
        font-size: 22px;
    }
    .treino-destaque-meta {
        flex-direction: column;
        gap: 8px;
    }
    .treino-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .treino-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .treino-card-actions {
        width: 100%;
    }
    .treino-card-actions .dash-btn {
        flex: 1;
        justify-content: center;
    }
    .treino-file-download {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .treino-info-cards {
        grid-template-columns: 1fr;
    }
    .treino-destaque {
        padding: 24px 18px;
    }
    .treino-destaque-actions {
        flex-direction: column;
        width: 100%;
    }
    .treino-destaque-actions .dash-btn {
        justify-content: center;
    }
}
