:root {
    --primary: #470047; /* Deep Purple */
    --secondary: #1E5F74; /* Deep Teal */
    --neutral: #363636; /* Dark Gray */
    --dark-neutral: #1A001A; /* Very Dark Purple */
    --accent: #B8860B; /* Dark Gold */
    --background: #F8F8F0; /* Warm Off-White */
    --light-primary: #7A4A7A; /* Medium Purple */
    --light-secondary: #4A8A9A; /* Medium Teal */
    --light-neutral: #E8E8E0; /* Light Gray */
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-light {
    background-color: rgba(71, 0, 71, 0.8);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-secondary {
    color: var(--secondary);
}

.border-secondary {
    border-color: var(--secondary);
}

.hover\:bg-secondary:hover {
    background-color: var(--secondary);
}

.hover\:text-secondary:hover {
    color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.text-accent {
    color: var(--accent);
}

.border-accent {
    border-color: var(--accent);
}

.hover\:bg-accent:hover {
    background-color: var(--accent);
}

.hover\:text-accent:hover {
    color: var(--accent);
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fadeIn {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-slideInUp {
    animation: slideInUp 0.8s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8F8F0;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Custom button styles */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--light-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--light-secondary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Custom card styles */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #E8E8E0;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid #E8E8E0;
    background-color: #F8F8F0;
}

/* Custom form styles */
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Custom table styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: var(--primary);
    color: white;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(184, 134, 11, 0.1);
}

/* Custom alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Custom badge styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    color: #fff;
    background-color: var(--primary);
}

.badge-secondary {
    color: #fff;
    background-color: var(--secondary);
}

/* Custom navigation styles */
.nav-tabs {
    border-bottom: 1px solid #E8E8E0;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: var(--primary);
}

.nav-tabs .nav-link:hover {
    border-color: #E8E8E0 #E8E8E0 #dee2e6;
}

.nav-tabs .nav-link.active {
    color: var(--accent);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Custom vertical tabs */
.vertical-tabs {
    display: flex;
}

.vertical-tabs .nav-tabs {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid #E8E8E0;
    width: 200px;
}

.vertical-tabs .nav-tabs .nav-link {
    border-radius: 0;
    border: 1px solid transparent;
    border-right: none;
}

.vertical-tabs .nav-tabs .nav-link.active {
    border-color: #E8E8E0 #fff #E8E8E0 #E8E8E0;
    color: var(--accent);
    font-weight: 600;
}

.vertical-tabs .tab-content {
    flex: 1;
    padding: 1rem;
}

/* Custom gallery styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(71, 0, 71, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Custom team member styles */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-member p {
    margin-bottom: 0.25rem;
}

.team-member .social-links {
    margin-top: 1rem;
}

.team-member .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.team-member .social-links a:hover {
    background-color: var(--secondary);
}

/* Custom blog styles */
.blog-post {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-post-meta a {
    color: var(--primary);
    text-decoration: none;
}

.blog-post-meta a:hover {
    color: var(--secondary);
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--secondary);
}

.blog-post-excerpt {
    margin-bottom: 1rem;
    color: #4b5563;
}

.blog-post-read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.blog-post-read-more:hover {
    color: var(--secondary);
}

/* Custom contact form styles */
.contact-form {
    background-color: #F8F8F0;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Custom donation form styles */
.donation-form {
    background-color: #F8F8F0;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.donation-amount {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid #E8E8E0;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.donation-amount:hover {
    border-color: var(--accent);
}

.donation-amount.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.donation-custom-amount {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E8E8E0;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.donation-custom-amount:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Custom dashboard styles */
.dashboard-sidebar {
    background-color: var(--primary);
    min-height: calc(100vh - 64px);
    padding-top: 1rem;
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.dashboard-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar .nav-link.active {
    color: white;
    background-color: var(--accent);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background-color: rgba(71, 0, 71, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.warning {
    background-color: rgba(184, 134, 11, 0.1);
    color: var(--accent);
}

.stat-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #363636; /* Updated to neutral color */
}

.stat-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .vertical-tabs {
        flex-direction: column;
    }
    
    .vertical-tabs .nav-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E8E8E0;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .vertical-tabs .nav-tabs .nav-link {
        border-radius: 0.25rem 0.25rem 0 0;
        border-bottom: none;
        border-right: 1px solid #E8E8E0;
    }
    
    .vertical-tabs .nav-tabs .nav-link.active {
        border-color: #E8E8E0 #E8E8E0 #fff #E8E8E0;
    }
}

/* In your CSS file */
.primary-button {
    background-color: #470047; /* Updated to primary color */
    color: #ffffff; /* You might want to add white text */
}

.secondary-button {
    background-color: #1E5F74; /* Updated to secondary color */
    color: #ffffff; /* Changed to white for better contrast */
}