/* Modern Charity Foundation Style */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
.modern-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.modern-header h1, .modern-header h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modern-header .subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Card Styles */
.modern-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-card-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modern-card-body {
    padding: 2rem;
}

/* Button Styles */
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-modern-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-modern-secondary {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-modern-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Table Styles */
.modern-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--text-dark) 0%, #374151 100%);
}

.modern-table thead th {
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: var(--bg-light);
}

.modern-table tbody td {
    padding: 1rem;
    border: none;
    vertical-align: middle;
}

/* Form Styles */
.modern-form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.modern-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
    outline: none;
}

.modern-form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Input Group Styles */
.modern-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.modern-input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Alert Styles */
.modern-alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.modern-alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

.modern-alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.modern-alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--accent-color);
}

.modern-alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Modal Styles */
.modern-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modern-modal .modal-title {
    font-weight: 700;
    color: var(--text-dark);
}

.modern-modal .modal-body {
    padding: 2rem;
}

.modern-modal .modal-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Badge Styles */
.modern-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-badge-primary {
    background: var(--primary-color);
    color: white;
}

.modern-badge-success {
    background: var(--secondary-color);
    color: white;
}

.modern-badge-warning {
    background: var(--accent-color);
    color: white;
}

/* Navigation Styles */
.modern-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.modern-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
}

.modern-nav .nav-link:hover,
.modern-nav .nav-link.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Section Styles */
.modern-section {
    padding: 3rem 0;
}

.modern-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.modern-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modern-section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-modern {
    box-shadow: var(--shadow-lg);
}

.rounded-modern {
    border-radius: var(--radius-lg);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-section {
        padding: 2rem 0;
    }
    
    .modern-section-title {
        font-size: 2rem;
    }
    
    .modern-card-body {
        padding: 1.5rem;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

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

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

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

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

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}