/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f0f3fa 0%, #dfe8f6 100%);
    color: #333;
    line-height: 1.7;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #2d3e50, #1c2b40);
    padding: 1rem 2rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover {
    color: #f3ad2f;
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: #ffffff;
    margin-right: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f3ad2f;
    border-bottom: 2px solid #f3ad2f;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4f6a8a, #2f445e);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f3ad2f, #f2b83f);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    color: #2f445e;
    border: 2px solid #2f445e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(47, 68, 94, 0.8);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2f445e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 3rem;
}

p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.text-white {
    color: white !important;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

input:focus, select:focus, textarea:focus {
    border-color: #2f445e;
    outline: none;
    box-shadow: 0 0 12px rgba(47, 68, 94, 0.2);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.table th, .table td {
    padding: 16px 24px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table thead th {
    background-color: #2f445e;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f9;
    transform: scale(1.02);
}

/* Dropdown */
.dropdown-menu {
    z-index: 9999; /* Ensure dropdown appears above other elements */
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95); /* Slightly opaque for better visual */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-group {
    position: relative;
    z-index: 1;
}

.table-responsive {
    position: relative;
    overflow: visible;
    z-index: 0;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Scrolling Effects */
.scrollable-box {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.scrollable-box::-webkit-scrollbar {
    width: 8px;
}

.scrollable-box::-webkit-scrollbar-thumb {
    background-color: #2f445e;
    border-radius: 10px;
}

.scrollable-box::-webkit-scrollbar-thumb:hover {
    background-color: #f3ad2f;
}

/* Footer */
footer {
    background-color: #2f445e;
    padding: 2rem 0;
    text-align: center;
    color: #ffffff;
    border-top: 5px solid #f3ad2f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

footer p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: #f3ad2f;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background-color: #f3ad2f;
    color: #2f445e;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.alert:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.8rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.8rem;
        margin-right: 0;
    }

    .card {
        padding: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .table thead {
        display: none;
    }

    .table tr {
        display: block;
        margin-bottom: 1rem;
    }

    .table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        white-space: normal;
        word-wrap: break-word;
        font-size: 0.85rem;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}


.action-block .card {
    background-color: #f8f9fa; /* Light background */
    border: 1px solid #dee2e6; /* Subtle border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.action-block .card:hover {
    transform: scale(1.05); /* Slight scaling on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Hover shadow */
}

.action-block .card h5 {
    font-size: 1.1rem;
    margin: 0;
}



