/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: url('../uploads/bg.png');
    color: #212529;
    line-height: 1.6;
    overflow-x: hidden !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

p {
    margin-bottom: 0px !important;
}

.card {
    border: none !important;
}

/* Navbar Styling */
.navbar {
    padding: 1rem;
    width: 100%;
}

.navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-brand img{
    width:18%;
}

.navbar-brand:hover {
    color: #ffc107;
}

.navbar .dropdown-menu {
    background-color: #343a40;
    border: none;
    border-radius: 10px;
}

.navbar .dropdown-item {
    color: #fff;
}

.navbar .dropdown-item:hover {
    background-color: #ffc107;
    color: #343a40;
}

/* User and Admin Panels */
.user,
.admin {
    margin: 20px 0;
    background: lightgray;
    padding: 20px;
    border-radius: 10px;
    text-transform: capitalize;
}

/* Container Styling */
.container,
.container-fluid {
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    padding: 1rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    text-transform: capitalize;
}

.table th {
    background-color: #343a40;
    color: #fff;
}

.table tr:hover {
    background-color: #f1f1f1;
}

/* Approval Section */
.approval {
    background: lightgray;
    padding: 5px;
    border-radius: 10px;
}

.approval li {
    list-style: inside;
    font-size: 15px;
    font-weight: 500;
}

/* Icons */
.bi {
    font-size: 35px;
}

i.bi-eye {
    font-size: 15px;
}

i.bi-printer{
    font-size: 15px;
}

i.bi-pencil-square{
    font-size: 15px;
}

i.bi-bar-chart{
    font-size: 15px;
}

i.bi-file-earmark-check{
    font-size: 15px;
}

i.bi-x-square{
    font-size: 15px;
}

i.bi-trash3{
    font-size: 15px;
}

i.bi-building-add{
    font-size: 15px;
}

i.bi.bi-arrow-right {
    font-size: 15px;
}

i.bi.bi-check-circle {
    font-size: 15px;
}

i.bi.bi-clock-history {
    font-size: 20px;
}

i.bi.bi-exclamation-triangle-fill.me-2 {
    font-size: 15px;
}

i.bi.bi-file-earmark-pdf {
    font-size: 16px;
}

div#notificationsAccordion {
    margin-bottom: 20px;
}

/* Buttons Styling */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 30px !important;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.btn-primary {
    background-color: #000;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    border: none;
}

.btn-info:hover {
    background-color: #117a8b;
}

/* DataTables Buttons */
.dt-buttons {
    margin-bottom: 15px;
}

.dt-button.btn-primary {
    background: #000;
    padding: 6px 20px;
    color: #fff;
    border-radius: 10px;
}

.dt-button.btn-primary:hover {
    background: #000!important;
    padding: 6px 20px;
    color: #fff!important;
    border-radius: 10px;
}

/* Summary Cards */
.total {
    background: #000000;
    color: #fff;
    border-radius: 20px;
}

/* Form Styling */
form {
    margin-top: 1rem;
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: all 0.3s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dropdown-menu[data-bs-popper] {
    top: 100%;
    right: 0!important;
    margin-top: 0.8rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Footer Styling */
footer {
    background-color: #000 !important;
    color: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-top: auto;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Role-Specific Panels */
.admin-panel {
    background-color: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}

.user-panel {
    background-color: #d1ecf1;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #bee5eb;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .container,
    .container-fluid {
        padding: 1rem;
        margin: 1rem 0;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .bi {
        font-size: 25px;
    }
    .navbar-brand img{
        width:80%;
    }
}

@media (max-width: 576px) {
    .table {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.8rem;
    }
    .navbar-brand img{
        width:80%;
    }
}
