/* General Styles */
body {
    background-color: hsl(216, 19%, 16%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 90px auto 20px;
    padding: 20px;
    background-color: hsl(216, 19%, 20%);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Center the Heading */
h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    /* color: #00bcd4; */
}

/* Responsive Table Wrapper */
.table-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile devices */
}

/* Table Styles */
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: hsl(216, 19%, 25%);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 10px;
    text-align: left;
    color: white;
}

th {
    background-color: hsl(216, 19%, 30%);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00bcd4;
}

td a {
    color: white;
    background-color: #ff2b2b;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

td a:hover {
    background-color: #d11414;
    text-decoration: none;
}

/* Hover Effect for Table Rows */
tr {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

tr:nth-child(even) {
    background-color: hsl(216, 19%, 22%);
}

tbody tr:hover {
    background-color: hsl(216, 19%, 28%);
    transform: scale(1.02); /* Slight zoom effect */
}

/* Admin Form Styles */
.admin-form, .login-form {
    margin-top: 20px;
    padding: 20px;
    background-color: hsl(216, 19%, 25%);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.admin-form label, .admin-form input, .admin-form button,
.login-form label, .login-form input, .login-form button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

.admin-form input, .login-form input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: hsl(216, 19%, 20%);
    color: white;
}

.admin-form input:focus, .login-form input:focus {
    outline: none;
    border-color: #00bcd4;
}

.admin-form button, .login-form button {
    padding: 10px 15px;
    background-color: #00bcd4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.admin-form button:hover, .login-form button:hover {
    background-color: #0097a7;
}

/* Floating WhatsApp Button */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.my-float {
    font-size: 30px;
    color: white;
}

/* "Are you Admin?" Link */
.admin-link {
    margin-top: 20px;
    text-align: center;
}

.admin-link a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* Logout Button */
.logout-button {
    color: white;
    background-color: #f44336;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* Edit and Delete Buttons */
.edit-button, .delete-button {
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.edit-button:hover {
    background-color: #388e3c;
}

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

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

/* Add Job Button */
.add-job-button {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.add-job-button:hover {
    background-color: #388e3c;
}


/* General Navbar Styles */
.navbar {
    background-color: #1e293b; /* Dark navy background */
    color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar .nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav__container img {
    height: 45px; /* Adjust the height of the logo */
    width: auto; /* Maintain aspect ratio */
    max-height: 60px; /* Optional: Limit the maximum height */
}

/* Navbar Menu */
.navbar .nav__menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar .nav__menu li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav__menu li a:hover {
    color: #38bdf8; /* Teal highlight color */
}

/* Responsive Navbar for Mobile */
#open-menu-btn,
#close-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .navbar .nav__menu {
        display: none; /* Hide menu by default on mobile */
        flex-direction: column;
        background-color: #1e293b;
        position: absolute;
        top: 60px;
        right: 0;
        width: 50%;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .navbar .nav__menu.active {
        display: flex; /* Show menu when active */
    }

    #open-menu-btn,
    #close-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #close-menu-btn {
        display: none; /* Hide close button by default */
    }

    .nav__menu li {
        text-align: center;
        margin: 10px 0;
    }

    .main-container h1{
        font-size: 2rem;
    }
}