/**
 * dashboard.css - Dashboard Page Styles
 * BO Inteligente - SaaS Phase 2
 */

/* Dashboard Page Container */
.dashboard-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    padding: 40px 20px;
}

.dashboard-container {
    background: transparent;
    max-width: 700px;
    width: 100%;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.dashboard-version {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
    vertical-align: middle;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.dashboard-logout {
    padding: 8px 16px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-logout:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.dashboard-logout:active {
    transform: scale(0.98);
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 4px;
}

.dashboard-new-btn {
    padding: 14px 28px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-new-btn:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dashboard-new-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.dashboard-new-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dashboard-type-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Dashboard Filters */
.dashboard-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.dashboard-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-filter-select,
.dashboard-filter-date {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background: #ffffff;
}

.dashboard-filter-select:focus,
.dashboard-filter-date:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dashboard Content */
.dashboard-content {
    min-height: 200px;
}

/* Dashboard List */
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Dashboard Card */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dashboard-card-id {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    font-family: 'Courier New', monospace;
}

.dashboard-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-badge--draft {
    background: #fef3c7;
    color: #92400e;
}

.dashboard-badge--completed {
    background: #d1fae5;
    color: #065f46;
}

.dashboard-card-body {
    margin-bottom: 16px;
}

.dashboard-card-date,
.dashboard-card-answers {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0;
}

.dashboard-card-answers {
    font-weight: 500;
    color: #374151;
}

.dashboard-card-type {
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.dashboard-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Card Action Buttons */
.dashboard-resume-btn,
.dashboard-view-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-resume-btn:hover,
.dashboard-view-btn:hover {
    background: #2563eb;
}

.dashboard-resume-btn:active,
.dashboard-view-btn:active {
    transform: scale(0.98);
}

.dashboard-view-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.dashboard-view-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.dashboard-delete-btn {
    padding: 10px 20px;
    background: transparent;
    color: #ef4444;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-delete-btn:active {
    transform: scale(0.98);
}

/* Dashboard States */
.dashboard-loading,
.dashboard-empty,
.dashboard-error {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

.dashboard-empty {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-empty p {
    margin: 8px 0;
}

.dashboard-empty p:first-child {
    font-weight: 600;
    color: #374151;
    font-size: 18px;
}

.dashboard-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
}

.dashboard-error p {
    margin: 0 0 16px 0;
    font-weight: 500;
}

.dashboard-retry-btn {
    padding: 10px 20px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-retry-btn:hover {
    background: #dc2626;
}

.dashboard-retry-btn:active {
    transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .dashboard-page {
        padding: 24px 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-user {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 24px;
    }

    .dashboard-new-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .dashboard-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-type-label {
        text-align: center;
    }

    .dashboard-card {
        padding: 16px;
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dashboard-card-id {
        font-size: 14px;
    }

    .dashboard-card-actions {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-resume-btn,
    .dashboard-view-btn,
    .dashboard-delete-btn {
        width: 100%;
        text-align: center;
    }

    .dashboard-loading,
    .dashboard-empty,
    .dashboard-error {
        padding: 40px 16px;
        font-size: 14px;
    }

    .dashboard-empty p:first-child {
        font-size: 16px;
    }
}

/* Small screens (landscape phones) */
@media (max-width: 360px) {
    .dashboard-page {
        padding: 20px 12px;
    }

    .dashboard-card {
        padding: 14px;
    }

    .dashboard-title {
        font-size: 22px;
    }

    .dashboard-card-id {
        font-size: 13px;
    }

    .dashboard-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
}
