/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Arial', sans-serif; */
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    overflow-x: hidden;    
}

/* Global Styles */
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline;
}

.error-message { color: red; }
/* Styles for profession dropdown with checkboxes */
.dropdown-checkboxes {
    position: relative;
}
.dropdown-checkboxes .dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

/* Hero Section */
.hero-section {
    color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hero-section h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
.hero-section p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-section .btn {
    padding: 8px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    transition: background-color 0.3s ease-in-out;
}
.hero-section .btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.hero-section .hero-text{
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}
.hero-section .lead{
    color: #ffffff;
}


.btn-grad {background-image: linear-gradient(to right, #F09819 0%, #EDDE5D  51%, #F09819  100%)}
.btn-grad {
    position: relative;
   margin: 10px;
   padding: 15px 45px;
   text-align: center;
   text-transform: uppercase;
   transition: 0.5s;
   background-size: 200% auto;
   color: white;            
   box-shadow: 0 0 20px #eee;
   border-radius: 10px;
   display: block;
   width: 40%;
 }

 .btn-grad:hover {
   background-position: right center; /* change the direction of the change here */
   color: #fff;
   text-decoration: none;
 }


/* About Section */
.container {
    padding: 1rem 0;
    max-width: 95%;
    margin: 0 auto;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #333333;
}
.card .count-number{
  font-size: 20px;
  font-weight: bold;
}

p {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

/* Features Section */
.bg-light {
    background-color: #f9f9f9 !important;
}
i {
    color: #007bff;
}
h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-left: 15rem;
}
.col-md-4 p {
    font-size: 1rem;
    color: #666666;
}

/* Adjust the main content to avoid overlap with the sidebar */
.main-content {
    /*margin-left: 50px; /* Adjust this value to match your sidebar width */
    /*padding: 50px; /* Optional padding for better spacing */
    margin-top: 80px;
}

.main-content .btn-primary{
    margin-left: 15rem;
}
.main-content .btn-secondary{
    margin-left: 15rem;
}
/* General table styling */
.table {
    width: 83%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: #212529;
    margin-left: 15rem;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
    text-align: center;
}

/* Table header styling */
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Add hover effect on rows */
.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

/* Icon column styling */
.table img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border: 0;
    }

    .table thead {
        display: block;
    }

    .table tbody {
        display: block;
    }

    .table th, .table td {
        text-align: left;
        white-space: nowrap;
    }

    .table th:first-child, .table td:first-child {
        text-align: center;
    }

    /* Make actions buttons more compact */
    .table .btn {
        font-size: 12px;
        padding: 0.25rem 0.5rem;
    }
}

/* Styling for very small screens */
@media (max-width: 576px) {
    .table th, .table td {
        font-size: 14px;
        padding: 0.5rem;
    }

    .table img {
        max-width: 40px;
        max-height: 40px;
    }
}


/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}
.login-container .form-control {
    border-radius: 5px;
    height: 45px;
}
.login-container .btn-primary {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease-in-out;
}
.login-container .btn-primary:hover {
    background-color: #0056b3;
}
.login-container .form-check-label {
    font-size: 0.9rem;
    color: #555555;
}
.login-container .forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #007bff;
    margin-top: 10px;
}
.login-container .forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    background-color: #343a40;
    color: #ffffff;
    height: 100vh;
    position: fixed;
    width: 250px;
    padding-top: 20px;
}
.sidebar .nav-link {
    color: #dddddd;
    font-size: 1rem;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.sidebar .nav-link:hover {
    background-color: #495057;
    color: #ffffff;
}
.sidebar .nav-link.active {
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
    padding: 0;
    z-index: 1000;
    position: fixed;
    width: 100%;
    top: 0;
}
.navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
}
.navbar .navbar-brand:hover {
    color: #007bff;
}
.navbar .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Label styling */
.form-content {
    max-width: 100%;
    margin-left: 15rem;
}
.form-group label {
    font-weight: bold;
    margin-right: 1rem;
}

/* Input fields and text areas */
.form-group .form-control {
    flex: 1;
}

/* Textarea styling */
textarea {
    resize: none; /* Disable resize for consistent layout */
}

/* Button styling */
button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* Optional: Make form responsive */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        margin-bottom: 0.5rem;
    }

    .form-group .form-control {
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: #222222;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* .card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 83%;
    margin-left: 15rem;
}

.card-header {
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.card-body {
    padding: 1.5rem;
}

.card img {
    display: block;
    margin: 0 auto;
} */

.view-container {
    max-width: 100%;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.view-container h3 {
    margin-bottom: 20px;
    text-align: center;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-weight: bold;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
