/* Profile Page Styles */

.profile-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

html.dark .profile-header {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.profile-header nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

html.dark .profile-sidebar {
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    color: white;
    font-size: 64px;
}

.profile-name {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

html.dark .profile-name {
    color: #f9fafb;
}

.profile-email {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s;
}

.profile-nav-item:hover {
    background: #f3f4f6;
    color: #10b981;
}

html.dark .profile-nav-item:hover {
    background: #1e293b;
}

.profile-nav-item.active {
    background: #f0fdf4;
    color: #10b981;
}

html.dark .profile-nav-item.active {
    background: rgba(16, 185, 129, 0.1);
}

.profile-nav-item i {
    width: 20px;
    text-align: center;
}

.btn-logout {
    width: 100%;
    padding: 12px 16px;
    background: #fee;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

/* Content Area */
.profile-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.dark .profile-content {
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
}

html.dark .section-title {
    color: #f9fafb;
}

/* Profile Card */
.profile-card {
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

html.dark .profile-card {
    background: #1e293b;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.dark .card-header {
    border-bottom-color: #334155;
}

.card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

html.dark .card-header h4 {
    color: #f9fafb;
}

.card-content {
    padding: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

html.dark .info-row {
    border-bottom-color: #334155;
}

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

.info-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-weight: 500;
}

.info-label i {
    width: 20px;
    text-align: center;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
}

html.dark .info-value {
    color: #f9fafb;
}

/* Subscription Card */
.plan-badge {
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.subscription-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.subscription-details h5 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

html.dark .subscription-details h5 {
    color: #f9fafb;
}

.subscription-details p {
    margin: 0;
    color: #6b7280;
}

.subscription-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

html.dark .subscription-stats {
    background: #0f172a;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

html.dark .stat-value {
    color: #f9fafb;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.subscription-actions {
    display: flex;
    gap: 12px;
}

.subscription-actions .btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

/* Usage Cards */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.usage-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
}

html.dark .usage-card {
    background: #1e293b;
}

.usage-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.usage-details {
    flex: 1;
}

.usage-details h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

.usage-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.usage-value .current {
    font-size: 28px;
    font-weight: 700;
    color: #10b981;
}

.usage-value .separator {
    font-size: 18px;
    color: #9ca3af;
}

.usage-value .limit {
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
}

.usage-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

html.dark .usage-bar {
    background: #334155;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.3s;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    color: #6b7280;
}

html.dark .activity-item {
    background: #0f172a;
}

.activity-item i {
    color: #10b981;
}

/* Message Toast */
.message-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: #1f2937;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.message-toast.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-sidebar {
        position: static;
    }

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .subscription-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-container {
        padding: 20px 16px;
    }

    .profile-content {
        padding: 20px;
    }

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