/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* Optional: Background color for the whole page */
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}
/* h2 Styles */
h2 {
    font-size: 18px; /* Adjust the font size */
    font-weight: bold; /* Make the text bold */
    color: hsl(0, 0%, 100%); /* Set the text color */
    margin-top: 0; /* Adjust the margin as needed */
    background:linear-gradient(90deg, #5a0248, #9205de);
    padding: 10px; /* Add padding if desired */
    border: 2px solid #a1a5ab; /* Optional: Add a border below the heading */
    text-align: center; /* Center-align the text */
    text-transform: uppercase; /* Make the text uppercase */
    letter-spacing: 1px; /* Adjust the letter spacing */
}

h1 {
    font-size: 25px; /* Adjust the font size */
    font-weight: bold; /* Make the text bold */
    color: hsl(0, 0%, 0%); /* Set the text color */
    margin-top: 0; /* Adjust the margin as needed */
    padding: 10px; /* Add padding if desired */
    text-align: center; /* Center-align the text */
    text-transform: uppercase; /* Make the text uppercase */
    letter-spacing: 1px; /* Adjust the letter spacing */
}
.content-wrapper {
    margin-top: 40px;
}
/* Container Styles */
.container, .entry-container, .update-container, .big-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Container Sizes */
.container {
    width: 300px;
    margin: 0px auto;
    border: 3px solid #fbf8f8;
    text-align: center;
}

.entry-container {
    width: 600px;
    margin: 0px auto;
    border: 3px solid #fbf8f8;
    text-align: center;
}

.update-container {
    width: 600px;
    margin: 0px auto;
    border: 3px solid #fbf8f8;
    text-align: center;
}
.big-container {
    width: 900px;
    margin: 0px auto;
    border: 3px solid #fbf8f8;
    text-align: center;
}

/* Form Styles */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="password"], .form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom: 5px;
    
}

input[type="text"]:focus, input[type="password"]:focus, .form-group input:focus, .form-group select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group {
    margin-bottom: 8px;
    text-align: left;
}

.form-group label {
    color: #495057;
}

.form-group input, .form-group select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #495057;
    transition: border-color 0.3s ease;
    
}

/* Button Styles */
button, .button {
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
}

.button-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    
   
}

button {
    background-color: #007bff;
}

button:hover {
    background-color: #0056b3;
}

.edit-button {
    background-color: #4CAF50;
}

.edit-button:hover {
    background-color: #45a049;
}

.info-button {
    background-color: #f8ec0a;
}

.info-button:hover {
    background-color: #a19705;
}

.delete-button {
    background-color: #f44336;
}

.delete-button:hover {
    background-color: #d32f2f;
}

.primary-button {
    background-color: #1039f2;
}

.primary-button:hover {
    background-color: #041e94;
}

.koushik-button {
    background: linear-gradient(90deg, #5a0248, #9205de);
}

.koushik-button:hover {
    background: linear-gradient(90deg, #400133, #6b02a3);
}
/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #5a0248, #9205de);
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.logo {
    color: white;
    font-size: 20px;
    font-weight: bold;
}
.logo2 {
    color: rgb(255, 255, 255);
    font-size: 12px;
    font-weight: bold;
}

/* New container for nav-links with border */
.nav-container {
    border: 1px solid rgb(140, 139, 139); /* 1px border */
    border-radius: 4px; /* Optional: Rounded corners */
    padding: 4px; /* Optional: Space between border and content */
    box-sizing: border-box; /* Includes padding and border in the element's total width/height */
    display: inline-flex; /* Ensure children are aligned horizontally */
    margin-right: 60px; /* Adjust this value to set the distance from the right side */
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links li {
    padding: 0 10px; /* Adjust the spacing between items */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: linear-gradient(90deg, #ff8a00, #e52e71);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        padding: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Dropdown Styles */
.dropdown-content {
    list-style: none;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin: 0;
    padding: 0;
}


.dropdown-content li {
    padding: 2px;
    border-bottom: 1px solid #ccc; /* Add a border between items */
}

.dropdown-content li:last-child {
    border-bottom: none; /* Remove the border from the last item */
}

.dropdown-content li.group-start {
    border-top: 2px solid #191919; /* Optional: Add a thicker border to start new groups */
    margin-top: 0px;
}
.dropdown-content a {
    color: black;
    padding: 6px 6px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #c9c5c5;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}



.form-row {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.form-row label {
    color: #495057;
    text-align: left;
    margin-bottom: 0px;
    
}
.form-row-3 label {
    color: #495057;
    text-align: left;
    margin-bottom: 0px;
    
}

.form-row input[type="text"], .form-row input[type="date"], .form-row input[type="password"],
.form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-bottom:5px ;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.form-row-3 input[type="text"], .form-row-3 input[type="date"], .form-row-3 input[type="file"],
.form-row-3 select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom:5px ;
    box-sizing: border-box; /* Ensures consistent sizing */
    
}

input[type="text"]:read-only, input[type="date"]:read-only {
    background-color: #f9f9f9;
}

.info-box {
    border: 2px solid hsl(0, 1%, 74%);
    padding: 5px;
    margin-bottom: 5px;
    background-color: hsl(0, 5%, 96%);
    border-radius: 5px;
   
}

.info-box label {
    margin-bottom: 0px;
    padding: 0px;
    
    text-align: left;
}


@media print {
    /* Ensure readonly fields are visible */
    input[readonly] {
        background-color: #f0f0f0; /* Light gray for readability */
        border: 1px solid #000; /* Border to make it visible */
        color: #000; /* Text color */
        font-size: 12pt; /* Ensure font size is readable */
    }
    
    /* Hide elements that should not appear in print */
    .no-print {
        display: none;
    }
}

.footer {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 97.3%;
}

.footer .social-icons a {
    margin-right: 10px;
}

.footer .social-icons img {
    width: 30px;
    height: 30px;
}

.footer-text {
    font-size: 14px;
    margin-right: 10px;
}




