/* Custom Glassmorphism Styles for Donation Portal */

body {
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.glass-container {
    background: rgba(255, 255, 255, 0.05); /* Translucent background */
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Light border */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-top: 50px; /* Adjust as needed */
}

.glass-container-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly more opaque for cards */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

/* Override default Bootstrap card background */
.card {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.card-body {
    background-color: transparent !important;
}

.glass-input, .glass-button {
    background: rgba(255, 255, 255, 0.1); /* Translucent input/button background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
    color: #e0e0e0; /* Light text */
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2); /* Slightly more opaque on hover */
    border-color: rgba(255, 255, 255, 0.3);
}

.alert {
    background-color: rgba(255, 255, 255, 0.2); /* Increased opacity for better visibility */
    border-color: rgba(255, 255, 255, 0.3); /* Brighter border */
    color: #ffffff; /* White text for general alerts */
}

.alert-success {
    background-color: rgba(144, 238, 144, 0.25); /* Brighter green */
    border-color: rgba(144, 238, 144, 0.4);
    color: #aaffaa; /* Lighter green text */
}

.alert-danger {
    background-color: rgba(255, 99, 71, 0.25); /* Brighter red */
    border-color: rgba(255, 99, 71, 0.4);
    color: #ff8877; /* Lighter red text */
}

.alert-warning {
    background-color: rgba(255, 255, 0, 0.25); /* Brighter yellow */
    border-color: rgba(255, 255, 0, 0.4);
    color: #ffffaa; /* Lighter yellow text */
}

.alert-info {
    background-color: rgba(173, 216, 230, 0.25); /* Brighter blue */
    border-color: rgba(173, 216, 230, 0.4);
    color: #bbffff; /* Lighter blue text */
}

/* Text elements for dark mode */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

a {
    color: #8be9fd; /* Light blue for links */
}

a:hover {
    color: #bd93f9;
}

/* Ensure form text/descriptions are visible */
.form-text {
    color: #cccccc !important; /* Brighter grey for descriptions */
}

/* Glassmorphism table style */
.glass-table {
    background: rgba(255, 255, 255, 0.05); /* Same as glass-container */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners */
}

.glass-table thead {
    background: rgba(255, 255, 255, 0.1); /* Slightly darker header */
}

.glass-table th, .glass-table td {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-container {
        padding: 20px;
        margin-top: 20px;
    }
}