/* === GLOBAL STYLES === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, #f0f4f3, #eafaf1);
    color: #2e3b2f;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* === WRAPPER === */
.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === SIDEBAR === */
#sidebar {
    min-width: 230px;
    max-width: 230px;
    background: linear-gradient(to bottom, #2e7d32, #1b5e20);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar .sidebar-header {
    padding: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    background-color: #1b5e20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul.components {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    padding: 10px 20px;
    border:1px solid #388e3c!important;
    border-radius:50px!important;
    transition: background-color 0.3s;
    margin-bottom:12px!important;
}

#sidebar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px !important;
    display: block;
    transition: color 0.3s;
}

#sidebar ul li:hover {
    background-color: #43a047;
}

/* === MAIN CONTENT === */
#content {
    flex: 1;
    padding: 30px;
    background: #f9fcfb;
    overflow-y: auto;
}

/* === NAVBAR === */
.navbar {
    background: #79c149 !important;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

/* === TOGGLE BUTTON === */
.toggle-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
}

/* === FORMS === */
form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2e3b2f;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c4c4c4;
    border-radius: 8px;
    background-color: #fdfdfd;
    font-size: 15px;
    transition: 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 6px #28a74577;
    outline: none;
}

/* === BUTTONS === */
button,
input[type="submit"],
a.button {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background-color: #218838;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* === TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

table th,
table td {
    padding: 12px 16px;
    border: 1px solid #e2f3e2;
    text-align: left;
}

table thead {
    background-color: #e9f8ee;
    font-weight: bold;
    color: #1b5e20;
}

table tbody tr:nth-child(odd) {
    background-color: #f6fff6;
}

table tbody tr:hover {
    background-color: #ecfdf1;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* === FORM MESSAGES === */
.form-success,
.form-error {
    padding: 12px 16px;
    border-left: 5px solid;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* === RESPONSIVE SIDEBAR === */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -230px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    .toggle-btn {
        display: inline-block;
    }
}

/* === FORM GRID FOR WIDE SCREENS === */
@media (min-width: 600px) {
    .form-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-grid-2 .form-group {
        margin-bottom: 0;
    }
}

/* === CARD HEADERS === */
.card-header {
    background: linear-gradient(to right, #2e3b2f, #1e2c21);
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}


/*New Style 26-07-2025*/

.dataTables_wrapper .dataTables_filter input {
    border-radius: 50px!important;

}

btn-group-sm>.btn, .btn-sm {
    padding: .25rem .8rem!important;
    border-radius: 1.2rem;
}


.card {
    border-radius: 1.7rem!important;
}

.card-header
 {
    background:#dadada;
    color: #28a745;
    font-weight:400!important;
    padding: 15px 20px;
    border-radius: 25px 25px 0px 0px !important;
    font-size: 12px!important;
}
.card-header a {
    color: #1e5d21 !important;
}


button { border-radius: 50px !important;  font-size: 14px !important;  border-top: 3px!important;}

.btn-warning {
    color: #fff !important;
    background-color:#deb906 !important;
    border-color: #ffc107 !important;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 5px 16px!important;
}

.blockquote { margin-bottom: 1rem!important; font-size: 1rem!important;}

table thead {
    font-size: 14px!important;
}

.editUser, .deleteUser, .resetPassword  { padding: .25rem .45rem !important;}