/* Account Page Container */
.account-page {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(229, 231, 235, 0.8) 100%);
    padding: 2rem 0;
}

.account-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,100 M100,0 L0,100" stroke="%2310B981" stroke-width="0.5" stroke-dasharray="5,5" /></svg>');
    opacity: 0.05;
    z-index: 0;
}

/* Account Container */
.account-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Account Header */
.account-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.account-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.account-subtitle {
    color: #6B7280;
    font-size: 1.1rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4B5563;
    font-size: 1rem;
    font-weight: 500;
}

/* Account Sections */
.account-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #E5E7EB;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
}

/* Table Styles */
.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.account-table th {
    background-color: #F9FAFB;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #4B5563;
    border-bottom: 2px solid #E5E7EB;
}

.account-table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    color: #6B7280;
}

.account-table tr:hover td {
    background-color: #F9FAFB;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-completed {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* Action Buttons */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-primary {
    background-color: #10B981;
    color: white;
}

.action-primary:hover {
    background-color: #059669;
}

.action-secondary {
    background-color: #F3F4F6;
    color: #4B5563;
}

.action-secondary:hover {
    background-color: #E5E7EB;
}

/* Profile Section */
.profile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

/* Settings Section */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.setting-card {
    background-color: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
}

.setting-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.setting-description {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-title {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .account-section {
        padding: 1.5rem;
    }

    .profile-section {
        grid-template-columns: 1fr;
    }

    .account-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #10B981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.error-message {
    background-color: #FEE2E2;
    color: #991B1B;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Success States */
.success-message {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 0.5rem;
}

/* Admin-specific Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.admin-chart {
    height: 200px;
    margin-top: 1rem;
    position: relative;
}

/* User Management Styles */
.user-list {
    margin-top: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

.user-email {
    color: #6B7280;
    font-size: 0.875rem;
}

/* Donation History Styles */
.donation-history {
    margin-top: 2rem;
}

.donation-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.donation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.donation-date {
    color: #6B7280;
    font-size: 0.875rem;
}

.donation-items {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

.donation-item-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #4B5563;
}

/* Accessibility Styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .account-page {
        background: none;
        padding: 0;
    }

    .account-section {
        box-shadow: none;
        border: 1px solid #E5E7EB;
        break-inside: avoid;
    }

    .no-print {
        display: none;
    }
}
