/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI','Georgia', serif; /* Classic font */
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styling */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
    font-size: 2rem;
    font-family: 'Arial', sans-serif; /* Logo with a clean sans-serif font */
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #f0a500; /* Hover color */
}

/* Main Content Styling */
.container {
    width: 95%!important;
    margin: 5px auto !important;
    padding: 5px !important;
    background-color: white !important;
    
    border-radius: 8px !important;
}
.container row {
    width: 100%!important;
}

.container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Button Styling */
button, .btn {
    /*background-color: #4CAF50;*/
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    align-items: center; 
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    
}

button:hover, .btn:hover {
    /*background-color: #45a049;*/
}

.wrapper {
    display: flex;
    flex-direction: column;    /* Stack elements vertically */
    min-height: 100vh;         /* Ensure the wrapper takes up at least the full viewport height */
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 7px 0;
    background-color: #c1c1c1;
    color: rgb(75, 74, 74);
    margin-top: auto;  /* Push the footer to the bottom */
}

footer p {
    font-size: 0.7rem;
}

/* Form Fields Styling */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

input[type="submit"], .form-submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
}

input[type="submit"]:hover, .form-submit:hover {
    background-color: #45a049;
}

/* Center content between header and footer */
.center-wrapper {
    display: flex;               /* Enable flexbox */
    justify-content: center;     /* Center horizontally */
    align-items: center;         /* Center vertically */
    min-height: 82vh;            /* Make the parent container take the full viewport height */
}
/* Center content between header and footer */
.center-wrapperInput {
    display: flex;               /* Enable flexbox */
    justify-content: center;     /* Center horizontally */
    align-items: center;         /* Center vertically */
    min-height: 82vh;            /* Make the parent container take the full viewport height */
}

/* .container2 styles */
.containerInput {
    max-width: 450px;    /* Set the max width to 300px */
    width: 100%;         /* Allow it to be responsive */
    padding: 20px;       /* Add padding around content */
    background-color: #f4f4f4;  /* Optional: Set background color */
    border: 1px solid #ccc;    /* Optional: Add border for visual effect */
    text-align: center;  /* Optional: Center the text inside the container */
}
/* Center content between header and footer */
.center-wrapperInputDouble {
    display: flex;               /* Enable flexbox */
    justify-content: center;     /* Center horizontally */
    align-items: center;         /* Center vertically */
    min-height: 82vh;            /* Make the parent container take the full viewport height */
}

/* .container2 styles */
.containerInputDouble {
    max-width: 900px;    /* Set the max width to 300px */
    width: 100%;         /* Allow it to be responsive */
    padding: 20px;       /* Add padding around content */
    background-color: #f4f4f4;  /* Optional: Set background color */
    border: 1px solid #ccc;    /* Optional: Add border for visual effect */
    text-align: center;  /* Optional: Center the text inside the container */
}
.containerLogin {
    max-width: 360px;    /* Set the max width to 300px */
    width: 100%;         /* Allow it to be responsive */
    padding: 10px;       /* Add padding around content */
    background-color: #f4f4f4;  /* Optional: Set background color */
    border: 1px solid #ccc;    /* Optional: Add border for visual effect */
    text-align: center;  /* Optional: Center the text inside the container */
}
/* Center content between header and footer */
.center-wrapperLogin {
    display: flex;               /* Enable flexbox */
    justify-content: center;     /* Center horizontally */
    align-items: center;         /* Center vertically */
    min-height: 82vh;            /* Make the parent container take the full viewport height */
}
/* .container3 styles */
.containerView {
    width: 100%;            /* Full width */
    padding: 20px;          /* Add padding around content */
    background-color: #f4f4f4;  /* Optional: Set background color */
    border: 1px solid #ccc;    /* Optional: Add border for visual effect */
    text-align: left;       /* Align text to the left */
}

/* Remove center alignment and ensure full width for .center-wrapper3 */
.center-wrapperView {
    display: flex;               /* Enable flexbox */
    justify-content: flex-start; /* Align content to the left */
    align-items: flex-start;     /* Align items to the top */
    width: 100%;                 /* Make the wrapper full width */
    height: auto;                /* Allow height to auto-adjust based on content */
}

/* Styling for the Logo Text */
.logo-container {
    width: 100%;             /* Make the container take full width */
    padding: 10px 0;         /* Add padding around the logo */
    display: flex;
    justify-content: center; /* Center the text horizontally */
    align-items: flex-start; /* Align text at the top */
    margin-bottom: 0px;     /* Add space below the text */
}



.create-btn {
    /* Your button styles */
    padding: 10px 20px;
    font-size: 16px;
}
.btn-container {
    display: flex;
    justify-content: flex-end;  /* Align the button to the right */
    padding: 10px;  /* Optional: Add padding around the container */
}
.button-group {
    display: flex;
    justify-content: flex-start;
    gap: 10px; /* Adjust the gap between the buttons */
}
/* Set max-width to 200px for the company_name input field */
.max-field-width {
    max-width: 300px;   /* Max width set to 200px */
    width: 100%;         /* Ensures the input is responsive */
}
.logo-text {
    font-size: 20px;          /* Set font size for the logo text */
    color: white;             /* White text color */
    font-weight: bold;        /* Bold text */
    text-align: left;       /* Center the text */
    width: 100%;              /* Take full width */
    padding: 10px;          /* Add padding around the text */
    background-color: #444;  /* Optional: Set background color for the text area */
}

/* Side Menu that slides in from the left */
.side-menu {

    position: fixed;
    top: 0;
    left: -250px;      /* Initially hidden off the left */
    width: 250px;      /* Set the width of the side menu */
    height: 100%;      /* Take full height of the screen */
    background-color: #fbf9f9;  /* Dark background for the menu */
    transition: left 0.3s ease-in-out;  /* Transition for sliding effect */
    padding-top: 1px;  /* Add padding to the top */
    z-index: 1000;      /* Ensure it's above other content */
    scroll-behavior: auto;
    overflow-y: auto;  /* Allow the sidebar to scroll vertically */
}

/* Make the side menu links clickable and adjust padding */
.side-menu ul {
    
    list-style-type: none;
    padding: 5px;
    margin: 0;
}


.side-menu .nav-item {
    
    padding: 5px;
    text-align: left;

    position: relative;  /* Ensure positioning of submenu */
}

.side-menu .nav-item a {
    color: rgb(71, 71, 71);
    text-decoration: none;
    font-size: 15px;
    display: block;      /* Make links block-level for easy clicking */
}

/* Hover effect for side menu links */
.side-menu .nav-item a:hover {
    background-color: #333;
    color: white;

}


/* Show submenu on hover of the parent item */
.side-menu .nav-item:hover .submenu {
    display: block;         /* Show the submenu on hover */
    visibility: visible;    /* Make sure it's visible */
}

/* Styling for submenu links */
.submenu .nav-link {
    color: white;
    text-decoration: none;
    padding: 3px;
    display: block;
    font-size: 12px;

}

/* Hover effect for submenu links */
.submenu .nav-link:hover {
    background-color: #575757; /* Change background on hover */
    
}

/* Show side menu when it's open */
.side-menu.open {
    left: 0; /* Slide in the menu */
}

/* Optional: Make the background cover the rest of the page */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999; /* Ensure it appears below the side menu */
}

/* Show overlay when the menu is open */
.side-menu.open + .side-menu-overlay {
    display: block;
}

/* Full-width header with black background */
header {
    background-color: black;  /* Black background */
    display: flex;             /* Use flexbox layout */
    justify-content: space-between; /* Space out logo and navbar */
    align-items: center;       /* Vertically center items */
    padding: 5px 10px;        /* Add padding to the header */
    width: 100%;
}

/* Flex container for the header content */
header .header-content {
    display: flex;
    justify-content: space-between; /* Space out hamburger and logo */
    align-items: center;            /* Vertically center content */
    width: 100%;                    /* Ensures the content spans full width */
    position: relative;             /* Add relative position to manage absolute children */
}

/* Hamburger Menu on the Left */
/* Hamburger Menu */
.navbar-toggler-wrapper {
    position: absolute;          /* Absolute position to avoid interfering with the logo */
    left: 5px;                  /* Position the hamburger button to the left */
    z-index: 1000;               /* Ensure it appears above other content */
}

.navbar-toggler {
    /*border: 2px solid white;*/     /* White border around the hamburger button */
    background-color: transparent; /* Transparent background for cleaner look */
    padding: 8px;                /* Add some padding around the hamburger button */
    cursor: pointer;            /* Add a pointer cursor on hover */

    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    width: fit-content;

}

.navbar-toggler-icon {
    background-color: white;     /* White color for the hamburger icon */
    width: 30px;                  /* 25px Set width of the hamburger icon */
    height: 15px;                 /* 20px Set height of the hamburger icon */
    position: relative;           /* Position the lines inside the icon */
    z-index: 1001;                /* Ensure the icon appears above other content */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.navbar-grid {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: fit-content;
  }
  .grid-square {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 1px;
  }
  .navbar-grid:hover .grid-square {
    background-color: #f0a500;
  }
/* Adding nice effects when hovering over the hamburger menu */
.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Add a slight background effect on hover */
    border-color: #8a0000;         /* Change the border color to blue when hovered */
}

/* Styling for each line of the hamburger icon */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;                  /* Set height of each hamburger line */
    background-color: white;      /* Make the hamburger lines white */
    border-radius: 2px;           /* Add rounded edges to the lines */
    transition: all 0.3s ease;    /* Smooth transition for the hover effect */
}

.navbar-toggler-icon::before {
    top: 0;                       /* Position the top line */
}

.navbar-toggler-icon::after {
    bottom: 0;                    /* Position the bottom line */
}

/* Optional: Adding a "close" effect when the menu is open */
.navbar-toggler.open .navbar-toggler-icon::before {
    transform: rotate(45deg);     /* Rotate the top line */
    top: 0px;
}

.navbar-toggler.open .navbar-toggler-icon::after {
    transform: rotate(-45deg);    /* Rotate the bottom line */
    bottom: 0px;
}

/* Logo styling */
header .logo {
    flex: 0 1 auto;                /* Prevent the logo from growing */
    display: flex;
    justify-content: flex-start;   /* Align the logo to the left */
    margin-left: 60px;             /* Add space to the left of the logo (to accommodate hamburger) */
}

header .logo-img {
    max-height: 50px;  /* Set the maximum height for the logo */
    width: auto;       /* Maintain aspect ratio */
}



/* Classic Look Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Segoe UI','Arial', sans-serif;
}

.table th, .table td {
    padding: 5px;
    text-align: left;
    border: 1px solid #ddd;
}

.table thead {
    background-color: #494949;
    color: white;
    font-weight: bold;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:hover {
    background-color: #f1f1f1; /* Highlight row on mouseover */
}

/* Pagination Container */
.pagination-container {
    margin-top: 20px;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
}

.page-item {
    margin: 0 5px;
}

.page-item .page-link {
    padding: 5px 15px;
    text-decoration: none;
    color: #920707;
}

.page-item.active .page-link {
    background-color: #920707;
    border-color: #920707;
    color: white;
}

.page-item:hover .page-link {
    background-color: #6f0202;
    border-color: #6f0202;
    color: white;
}


.form-group {
    display: flex;
    align-items: center; /* Vertically center align the items */
    margin-bottom: 5px; /* Add space between the fields */
}

.form-label-container {
    width: 40%; /* Adjust this width as per your design */
    padding-right: 5px; /* Space between label and input */
    padding-left: 10px; /* Space between label and input */
    text-align: left;
}

.form-input-container {
    width: 60%; /* Adjust the width for the input */
}

.max-field-width {
    max-width: 100%; /* Ensure the input doesn't overflow */
}

/* Optional: Button group styling */
.button-group {
    display: flex;
    justify-content: space-between;
}
.nav-link
{
    padding: .1rem 1rem;

}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header nav ul {
        display: block;
        text-align: center;
    }
    
    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .container {
        width: 90%;
        
    }

    /* Make the table horizontally scrollable on small screens */
    .table-responsive {
        overflow-x: auto;
    }

    /* Button layout: stack the buttons vertically on mobile */
    .d-flex {
        flex-direction: column;
    }

    .d-flex button {
        margin-bottom: 10px; /* Add space between buttons */
    }

    /* Adjust pagination for smaller screens */
    .pagination {
        flex-direction: column; /* Stack pagination items vertically */
    }

    .pagination .page-item {
        margin-bottom: 5px;
    }
}


