/* glass_theme.css */

/* 1. Body and Background */
body {
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* 3. Typography and Links */
h1, h2, h3, h4, h5, h6, .display-4 {
    color: #ffffff;
    font-weight: 300;
}

a {
    color: #a78bfa; /* A nice purple to stand out */
}

a:hover {
    color: #c4b5fd;
}

/* 4. Overriding Bootstrap Components */

/* Navbar */
.navbar.bg-dark {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Jumbotron replacement */
.glass-jumbo {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
}
.form-control:focus {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25);
}
label {
    color: #e0e0e0;
}
.form-control::placeholder {
    color: #a0a0a0;
}

/* Tables */
.table {
    color: #f0f0f0;
    line-height: 1;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.thead-light th {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pagination */
.pagination .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}
.pagination .page-item.active .page-link {
    background-color: #a78bfa;
    border-color: #a78bfa;
}
.pagination .page-item.disabled .page-link {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #6c757d;
}

/* Alerts */
.alert {
    border-radius: 16px;
    border: none;
    color: #fff;
}
.alert-success { background: linear-gradient(45deg, #2a9d8f, #264653); }
.alert-danger { background: linear-gradient(45deg, #e76f51, #f4a261); }
.alert-info { background: linear-gradient(45deg, #2196f3, #4caf50); }
.alert-warning { background: linear-gradient(45deg, #ff9800, #ffc107); }

/* Remove default card styles from Bootstrap */
.card {
    background-color: transparent;
    border: none;
}
.card-body, .card-header, .card-footer {
    background-color: transparent;
}

/* Custom Glass Button */
.btn-glass-green {
    background: rgba(40, 167, 69, 0.2); /* Transparent green */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #155724;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    animation: rotate-effect 10s linear infinite; /* Add rotation here */
}

.btn-glass-green:hover {
    background: rgba(40, 167, 69, 0.4);
    border: 1px solid rgba(40, 167, 69, 0.6);
    color: #2b9d4f;
}

@keyframes rotate-effect {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Green Glass Card */
.glass-card-green {
    background: rgba(40, 167, 69, 0.15); /* Transparent greenish tint */
    border: 1px solid rgba(40, 167, 69, 0.3);
}


.btn-xl {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}



.highlight {
    background-color: #a78bfa;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
}

.text-3d-green {
    color: #28a745; /* Brighter green */
    text-shadow:
        1px 1px 0 #1e7e34,  /* Slightly darker green for shadow */
        2px 2px 0 #1e7e34,
        3px 3px 0 #1e7e34,
        4px 4px 0 #1e7e34;
}
