/* VIZUAL AI Dashboard Styles */

/* Auth Section */
.auth-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.auth-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.btn-toggle {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-toggle.active {
    background: var(--primary-color);
    color: white;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Dashboard Layout */
.dashboard-section {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-top: 80px;
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: calc(100vh - 80px);
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 1000;
}

.sidebar-content {
    padding: 2rem 1rem;
}

.sidebar .nav-link {
    color: var(--text-secondary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.sidebar .nav-link .icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.main-content {
    margin-left: 0;
    padding: 2rem;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 25%;
    }
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 16.666667%;
    }
}

/* Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-action {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.quick-action-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.quick-action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Current Plan */
.current-plan {
    text-align: center;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-status {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

/* Subscription Details */
.subscription-details {
    color: var(--text-primary);
}

.subscription-plan {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.subscription-info {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.status-active {
    color: var(--success-color);
    font-weight: 600;
}

/* Usage Progress */
.usage-chart {
    text-align: center;
}

.usage-progress .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.usage-progress .progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

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

/* Usage Table */
.usage-table {
    color: var(--text-primary);
}

.table {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.table th {
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.table td {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Account Actions */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .sidebar {
        position: static;
        height: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    .sidebar .nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .sidebar .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-section {
        padding-top: 60px;
    }
    
    .quick-actions {
        gap: 0.75rem;
    }
    
    .quick-action {
        padding: 0.875rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* Content Sections */
.content-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Enhancements */
.dashboard-card .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Error States */
.text-error {
    color: var(--danger-color) !important;
}

.border-error {
    border-color: var(--danger-color) !important;
}

/* Success States */
.text-success {
    color: var(--success-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}