/* Dashboard Page Styles */
.dashboard-container {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease forwards;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(0, 192, 199, 0.1) 0%, rgba(133, 196, 73, 0.1) 100%);
    border-color: rgba(0, 192, 199, 0.3);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 192, 199, 0.1);
    color: var(--primary-cyan);
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(133, 196, 73, 0.1);
    color: var(--primary-green);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Usage Section */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Usage Table */
.usage-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
}

.usage-table th,
.usage-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.usage-table th {
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.usage-table td {
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.usage-table tr:last-child td {
    border-bottom: none;
}

.usage-table tr:hover td {
    background: rgba(0, 192, 199, 0.05);
}

.usage-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.usage-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 192, 199, 0.1);
    color: var(--primary-cyan);
}

.usage-credits {
    font-weight: 600;
    color: var(--primary-green);
}

.usage-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.usage-status {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.usage-status.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.usage-status.pending {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.usage-status.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-message {
    color: var(--text-secondary);
    max-width: 300px;
    margin: 0 auto;
}

/* Account Section */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.account-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.account-details p {
    color: var(--text-secondary);
}

.account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Link */
.admin-link {
    background: rgba(133, 196, 73, 0.1) !important;
    border-color: rgba(133, 196, 73, 0.3) !important;
    color: var(--primary-green) !important;
}

.admin-link:hover {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: var(--bg-dark) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-value { font-size: 2rem; }
    .usage-table th, .usage-table td { padding: 0.75rem 1rem; }
    .account-info { flex-direction: column; text-align: center; }
    .account-actions { justify-content: center; }
}
