/**
 * Mind2Way - Account Page Styles
 * Modern Bento Grid layout for profile and billing
 */

/* Sidebar Styles */
.sidebar {
    width: 256px;
    height: 100vh;
    background-color: var(--surface-white);
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}

.sidebar-nav-item:hover {
    background-color: var(--surface-gray);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background-color: var(--brand-50);
    color: var(--brand-600);
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-logout {
    padding: 16px;
    border-top: 1px solid #F3F4F6;
}

.sidebar-logout button {
    color: #DC2626;
}

.sidebar-logout button:hover {
    background-color: #FEE2E2;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
}

/* Header */
.page-header {
    border-bottom: 1px solid #F3F4F6;
    background-color: var(--surface-white);
}

.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.breadcrumb .active {
    color: var(--brand-500);
    font-weight: 500;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Bento Grid */
.bento-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Component */
.card {
    background-color: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Info Field */
.info-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.info-field-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-field-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-field-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.info-field-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.info-field-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Metric Grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric-box {
    padding: 16px;
    background-color: var(--surface-gray);
    border-radius: var(--radius-md);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-icon {
    width: 16px;
    height: 16px;
    color: var(--brand-500);
}

.metric-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Button Styles */
.btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-500);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-600);
}

.btn-secondary {
    background-color: var(--surface-gray);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-outline {
    border: 1px solid #E5E7EB;
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: var(--surface-gray);
}

.btn-full {
    width: 100%;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--surface-gray);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -256px;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .mobile-menu-btn {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 998;
        width: 48px;
        height: 48px;
        background-color: white;
        border: none;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        cursor: pointer;
    }
    
    .page-header-inner {
        padding-left: 72px;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        padding: 16px;
        gap: 16px;
        padding-top: 72px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
}
