/* Account Page Styles */

.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 40px 0;
    min-height: 70vh;
}

/* Sidebar */
.account-sidebar {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 40px;
    color: white;
}

.user-info {
    text-align: center;
}

.user-info h2 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #1e293b;
}

.user-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Menu */
.account-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    color: #475569;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.menu-item:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.menu-item.active {
    background: #e0f2fe;
    color: #0ea5e9;
    border-left: 3px solid #0ea5e9;
    padding-left: 13px;
}

.menu-item.logout {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    color: #ef4444;
}

.menu-item.logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Content Area */
.account-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.account-content h1 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 28px;
}

.account-content h2 {
    color: #1e293b;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Documents Section */
.documents-section {
    margin-bottom: 40px;
}

.documents-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-height: 150px;
}

.document-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.document-card i {
    font-size: 32px;
    color: #0ea5e9;
    margin-bottom: 10px;
}

.document-card h3 {
    margin: 10px 0 5px;
    font-size: 14px;
    color: #1e293b;
}

.document-card p {
    margin: 0 5px;
    font-size: 13px;
    color: #64748b;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Subscription Section */
.subscription-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.subscription-card h2 {
    color: #0ea5e9;
    margin-top: 0;
}

.subscription-card p {
    color: #64748b;
    margin: 10px 0;
}

.plan-details {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.plan-details h3 {
    margin-top: 0;
    color: #1e293b;
    font-size: 16px;
}

.plan-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-details li {
    padding: 8px 0;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.plan-details li:last-child {
    border-bottom: none;
}

.plan-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.settings-section h2 {
    margin-top: 0;
}

.setting-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.setting-item p {
    margin: 0;
    color: #475569;
}

.settings-section.danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.settings-section.danger h2 {
    color: #dc2626;
}

.settings-section.danger p {
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-sidebar {
        order: 2;
    }

    .account-content {
        order: 1;
        padding: 20px;
    }

    .account-content h1 {
        font-size: 22px;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .menu-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .account-content {
        padding: 15px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        padding: 20px;
    }

    .plan-actions {
        flex-direction: column;
    }
}
/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 20px;
    color: #475569;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-footer button.primary {
    background: #0ea5e9;
    color: white;
}

.modal-footer button.primary:hover {
    background: #0284c7;
}

.modal-footer button.secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-footer button.secondary:hover {
    background: #cbd5e1;
}

/* Generic Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn.primary {
    background: #0ea5e9;
    color: white;
}

.btn.primary:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn.secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.btn.secondary:hover {
    background: #cbd5e1;
}
