/* General Styles */
body, button, input, select, textarea {
    font-family: 'Didact Gothic', sans-serif;
    color: #062e03;
    font-size: 13px; 
    line-height: 1.231;
    margin: 0px;
    padding: 0px;
    background-color: #eee;
}

a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }
a:hover { color: inherit; }
a:focus { outline: inherit; }

.material-symbols-outlined {
    color: orange; /* Default color */
    font-size: 24px; /* Adjust icon size */
    transition: color 0.3s ease-in-out; /* Smooth transition */
}

.material-symbols-outlined:hover {
    color: orangered; /* Color on hover */
}
.success-box {
    color:white;
    background: linear-gradient(to right, green, #fff); 
    padding: 10px;
    margin-bottom: 10px;
    width: 90%;
    border-radius: 4px;
}

.error-box {
    color: white;
    background: linear-gradient(to right, #ef5222, #fff); 
    padding: 10px;
    margin-bottom: 10px;
    width: 90%;
    border-radius: 4px;
}
#error-panel {
    color: white;
    background: linear-gradient(to right, #ef5222, #fff); 
    width: auto;
    padding: 2%;
}

#success-panel {
    color:white;
    background: linear-gradient(to right, green, #fff); 
    width: auto;
    padding: 2%;
}

.label_text_wrap {
    color: gray;
}
.caption {
    color: olivedrab;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    padding: 5px;
    padding-left: 10px;
    
    /* Double border on left */
    border-left: 5px double orange;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    
    /* Margin solution */
    display: inline-block; /* or block */
    margin: 0 0 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.caption2 {
    color: grey;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    padding: 5px;
    padding-left: 10px;
    
    /* Double border on left */
    border-left: 5px double orange;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    
    /* Margin solution */
    display: inline-block; /* or block */
    margin: 0 0 10px 0;
    width: 100%;
    box-sizing: border-box;
}



/* General Input Styling */
input, textarea, select {
    width: 70%;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    color: #254d13;
    background-color: transparent;
    border: 0px solid #f57c04;
    border-left-width: 2px;
    border-bottom-width: 1px;
    outline: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Input Focus Effect */
input:focus, textarea:focus, select:focus {
    border-left-color: #f6891d;
    border-bottom-color: #f6891d;
    background-color: rgba(245, 124, 4, 0.1);
}

/* Submit Button */
input[type="submit"], button {
    width: 50%;
    padding: 12px;
    font-size: 16px;
    margin: 10px 0;
    background-color: #f57c04;
    border-radius: 6px;
    color: beige;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

/* Hover Effects */
input[type="submit"]:hover, button:hover {
    background-color: #f6891d;
    color: white;
    transform: scale(1.05);
}


/* Textarea */
textarea {
    width: 80%;
    min-height: 100px;
    resize: vertical;
}

/* Select Dropdown */
select {
    cursor: pointer;
}
input[type="checkbox"], 
input[type="radio"] {
    width: 20px; /* Increase checkbox & radio size */
    height: 20px;
    accent-color: #f57c04; /* Change color when checked */
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Label Styling for Checkboxes and Radio Buttons */
label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between input and text */
    padding: 8px 0;
    cursor: pointer;
}

/* Custom Focus Effect */
input[type="checkbox"]:focus, 
input[type="radio"]:focus {
    outline: 2px solid #f6891d;
}

/* Optional: Style Checked State */
input[type="checkbox"]:checked, 
input[type="radio"]:checked {
    filter: drop-shadow(0px 0px 4px rgba(245, 124, 4, 0.5));
}

/* Form Container */
.form-container {
    width: 90%;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    background-color: #0b6f36;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main header container */
#main_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0b6f36;
    color:orangered;
    padding: 10px 2%;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    margin: 0px; /* Ensure margin is set to 0 */
    top: 0; /* Stick it to the top */
}

/* Logo section */
#logo_holder {
    flex: 1;
    display: flex;
    align-items: center;
}

#logo_holder img {
    height: 40px;
}

/* Company name in the center */
#company_name {
    flex: 2;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: orange;
}

/* User section (Profile + Logout button) */
#user_section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Logged-in user details */
#logged_user {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile_img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #f57c04;
}

/* Logout button */
#logout_btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 5px;
}

#logout_btn .material-symbols-outlined {
    font-size: 28px;
}

#main_container {
clear: both;
float: left;
width: 100%;
display: block;
padding: 0%;
margin-top: 1%;
height: auto;
padding-top: 50px;
}
#index_logo_holder {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    }
    
    .menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    margin: 4px 4px; /* Add some vertical spacing */
    border-bottom: 0.5px dotted rgb(236, 175, 152);
    }
    .menu-item .material-icons {
        margin-right: 10px;
        font-size: 24px;
    }
    .menu-item:hover {
        background: linear-gradient(to right, orangered, #eee); /* Deep Orange */
        color: white;
    }
    .content {
        flex: 1;
        padding: 20px;
    }

    #paragraph1 {
        clear: both;
        float: left;
        width: 96%;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
        margin: 1%;
        padding: 1%;
        height: auto;
    }
    #paragraph2 {
        clear: both;
        float: left;
        width: 96%;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        background-color: transparent;
        margin: 1%;
        padding: 1%;
        height: auto;
    }

     /* General Table Styling */
#table {
    width: 100%;
    border-collapse: collapse; /* Ensures no double borders */
    font-size: 13px;
    overflow: auto;
}

/* Header Styling */
#table thead th {
    cursor: pointer;
}

/* Body Styling */
#table tbody td {
    padding: 10px;
    cursor: pointer;
}

/* Hover Effect */
#table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Even Row Coloring */
#table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

    /* General Table Styling */
#table2 {
    width: 100%;
    border-collapse: collapse; /* Ensures no double borders */
    font-size: 12px;
    overflow: auto;
}

/* Header Styling */
#table2 thead th {
    cursor: pointer;
}

/* Body Styling */
#table2 tbody td {
    padding: 8px;
    cursor: pointer;
}

/* Hover Effect */
#table2 tbody tr:hover {
    background-color: #f1f1f1;
}

/* Even Row Coloring */
#table2 tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
.dataTables_length label {
    font-size: 0; /* Hides the text */
}

.dataTables_length select {
    display: inline-block; /* Keeps the dropdown aligned properly */
    padding: 5%;
}

div.dt-buttons {
    display: flex;
    flex-wrap: nowrap; /* Prevents buttons from wrapping */
    gap: 5px; /* Reduces space between buttons */
    justify-content: flex-start; /* Aligns to the left */
    align-items: center; /* Centers vertically */
}

.dt-buttons .dt-button {
    padding: 6px 15px; /* Adjusts button padding */
    min-width: 90px; /* Ensures uniform button width */
    text-align: center;
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;   
}
.table-container {
    overflow-x: auto;
    overflow: auto;
}
#index_page_center {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: slideUp 0.4s ease;
}
/* Responsive Layouts */
@media only screen and (min-width: 480px) { /* Mobile Layout */

    #left_layout {
        clear: both;
        float: left;
        width: 96%;
        display: block;
    }
    #right_layout {
        clear: both;
        float: left;
        width: 96%;
        min-height: 500px;
        display: block;
    }
    
    #main_header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    #company_name {
        flex: 2;
        text-align: center;
    }
    
    #user_section {
        justify-content: flex-end;
    }

    
    #layout_two {
        clear: both;
        float: left;
        display: block;
        width: 96%;
        margin: 1%;
        padding: 1%;
        height: auto;
    }
    .modern-divider {
    border: 0;
    height: 0;
    width: 88%;
    margin: 2.5rem auto;
    border-top: 1px dotted #ff4500; /* Orange-red color */
    position: relative;
    opacity: 0.9;    
    animation: pulse 3s ease-in-out infinite;
    }
}

@media only screen and (min-width: 768px) { /* Desktop Layout */       
    #left_layout {
        clear: none;
        float: left;
        width: 16%;
        display: block;
        min-height: 500px;
    }
    #right_layout {
        clear: none;
        float: left;
        width: 84%;
        display: block;
    }
    
    #layout_two {
        clear: none;
        float: left;
        display: block;
        width: 45%;
        margin: 1%;
        padding: 1%;
        height: auto;
        border-left-width: thin;
        border-top-style: none;
        border-right-style: none;
        border-bottom-style: none;
        border-left-style: dotted;
        border-left-color: orange;
    }
}