/* Custom CSS for Donate Platform */

/* --- General Styles --- */
body {
    font-family: 'Inter', sans-serif; /* Modern, clean font */
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

/* --- Navbar --- */
.navbar {
    background-color: #fff !important; /* White navbar */
    border-bottom: 1px solid #ddd;
}

.navbar-brand {
    color: #0d6efd !important; /* Primary blue */
    font-weight: 700;
}

.navbar-logo {
    height: 40px; /* Adjust size as needed */
    width: 40px; /* Adjust size as needed */
}

.nav-link {
    color: #4b5563 !important; /* Equivalent to text-gray-600 */
    font-weight: 500;
    transition: color 0.3s ease; /* Equivalent to transition duration-300 */
}

.nav-link:hover {
    color: #2563eb !important; /* Equivalent to hover:text-blue-600 */
}

.custom-brand-text {
    font-size: 1.5rem; /* Equivalent to text-2xl */
    font-weight: 700; /* Equivalent to font-bold */
    background: linear-gradient(to right, #667eea, #764ba2); /* from-green-600 to-blue-600 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip */
}

/* --- Hero Section --- */
.hero-gradient-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
    background: linear-gradient(135deg, #4A90E2 0%, #81C784 100%) !important;
    color: #fff !important;
    padding: 3rem 1.5rem;
    border-radius: 0.5rem;
}

.hero .display-4 {
    font-weight: 700;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.8);
}

.hero-text-gradient {
    background: linear-gradient(to right, #16a34a, #2563eb); /* from-green-600 to-blue-600 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip */
}

.custom-search-input .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
}

.custom-search-btn {
    border-radius: 0 0.5rem 0.5rem 0;
    background-color: #e9ecef; /* Light gray background */
    border-color: #e9ecef;
}

.custom-search-btn:hover {
    background-color: #dee2e6; /* Slightly darker on hover */
    border-color: #dee2e6;
}

/* --- Charity Cards --- */
.card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.card-title {
    color: #333;
}

.card-text {
    color: #666;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.btn-gradient {
    background: linear-gradient(to right, #10B981, #3B82F6); /* from-green-500 to-blue-500 */
    border: none;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem; /* Equivalent to py-3 px-4 */
    border-radius: 0.375rem; /* Equivalent to rounded-md */
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(to right, #059669, #2563eb); /* hover:from-green-600 hover:to-blue-600 */
    color: white;
}

.charity-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

.statistic-circle {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.statistic-icon {
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    margin-bottom: 10px;
}

.statistic-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #10B981, #3B82F6); /* from-green-500 to-blue-500 */
}

.statistic-icon-circle i {
    font-size: 2rem;
}

.custom-success-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.call-to-action-bg {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-charity-card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.custom-charity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.18); /* Equivalent to shadow-xl */
}

.custom-charity-logo {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto; /* Center the logo and add some bottom margin */
}

.custom-card-img {
    height: 12rem; /* Equivalent to h-48 */
    object-fit: cover;
    padding: 1rem; /* Equivalent to p-4 */
}

.custom-card-img-placeholder {
    height: 12rem; /* Equivalent to h-48 */
    background-color: #f8f9fa; /* Equivalent to bg-light */
}

.custom-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Login/Register Page Styles --- */
.custom-gradient-bg {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #faf5ff 100%); /* from-green-50 via-blue-50 to-purple-50 */
}

.custom-card {
    border: none;
    border-radius: 0.5rem; /* Equivalent to rounded-lg */
}

.custom-input-icon {
    background-color: transparent;
    border-right: none;
    color: #6b7280; /* Equivalent to text-gray-400 */
}

.custom-input {
    padding-left: 2.5rem; /* Equivalent to pl-10 */
    border-left: none;
}

.custom-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25); /* Equivalent to focus:ring-2 focus:ring-blue-500 */
    border-color: #3b82f6; /* Equivalent to focus:ring-blue-500 */
}

.custom-link {
    font-weight: 500; /* Equivalent to font-medium */
    color: #2563eb; /* Equivalent to text-blue-600 */
    transition: color 0.3s ease;
}

.custom-link:hover {
    color: #3b82f6; /* Equivalent to hover:text-blue-500 */
}

.custom-role-btn {
    border-color: #d1d5db; /* Equivalent to border-gray-300 */
    color: #4b5563; /* Equivalent to text-gray-700 */
}

.custom-role-btn:hover {
    background-color: #f3f4f6; /* Equivalent to hover:bg-gray-100 */
}

/* --- Dashboard Sidebar Styles --- */
.custom-sidebar {
    min-height: 100vh;
    background-color: #212529; /* Dark background */
}

.custom-logo {
    width: 32px;
    height: 32px;
}

.btn-ghost {
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 0.625rem 1rem; /* py-2.5 px-4 */
    transition: background-color 0.3s ease;
    color: #fff !important; /* Ensure text is white */
}

.btn-ghost:hover {
    background-color: #495057; /* Equivalent to hover:bg-gray-700 */
    color: #fff;
}

/* --- Footer Styles --- */
.footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 1.5rem 0;
    color: #666;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero .display-4 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem; /* Add some space between cards on small screens */
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 0.5rem; /* Adjust padding for smaller nav links */
    }
}

@media (max-width: 576px) {
    .hero {
        text-align: center;
    }

    .btn {
        width: 100%; /* Full width buttons on very small screens */
        margin-bottom: 0.5rem;
    }
}