* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.login-page {
    background: linear-gradient(135deg, #0f113d 0%, #1c1f53 100%);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 350px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container img{
    display: block;
    margin: 0 auto 20px;
    width: 100px;
    height: auto;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0f113d;
    font-size: 28px;
    font-weight: 700;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-container input {
    padding: 10px;
    border: 2px solid #cfcfcf;
    border-radius: 6px;
    font-size: .8em;
    font-family: "Montserrat", sans-serif;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.login-container input::placeholder {
    color: #707070;
}

.login-container input:focus {
    outline: none;
    border-color: #0f113d;
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 17, 61, 0.1);
}

.login-container button {
    padding: 14px;
    background: linear-gradient(135deg, #0f113d 0%, #1a1f4b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: .9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    width: 100%;
    margin-top: 10px;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 17, 61, 0.3);
}

.error-message {
    background-color: #ff5866;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.info-message {
    background-color: #17a2b8;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #0c5460;
}

@media (max-width: 480px) {
    body.login-page {
        padding: 16px;
    }

    .login-container {
        padding: 28px 18px;
        max-width: 100%;
        border-radius: 14px;
        
    }

    .login-container img {
        width: 80px;
        margin-bottom: 14px;
    }

    .login-container h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .login-container form {
        gap: 12px;
    }

    .login-container input,
    .login-container button {
        font-size: 15px;
    }

    .login-container button {
        padding: 13px 12px;
    }

    .error-message,
    .info-message {
        font-size: 14px;
    }
}

/* Header and Navigation Styles */
header.navbar {
    background-color: #F4F1EA;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    padding: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(26, 31, 32, 0.08), 0 1px 4px rgba(26, 31, 32, 0.04);
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index:100;
}

header.navbarb {
    background: #F4F1EA;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    padding: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(26, 31, 32, 0.08), 0 1px 4px rgba(26, 31, 32, 0.04);
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index:100;
}

.navbar-container {
    max-width: 100%;
    /* height: 80px; */
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

main {
    flex: 1;
    padding: 125px 30px 30px;
}

/* .orders-header,
.dashboard-header {
    position: sticky;
    top: 84px;
    z-index: 900;
    background: white;
} */

.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 80px;
    padding: 0 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.menu-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    flex: 1;
    height: 80px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    text-decoration: none;
    color: rgb(65, 65, 65);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 80px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: rgba(175, 175, 175, 0.2);
    transform: translateY(-2px);
}

.menu-item .image-icon {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item .image-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
}

.menu-item .label {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

.menu-item .click-area {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.menu-item.logout-item {
    margin-left: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

/* Scrollbar styling for menu-buttons */
.menu-buttons::-webkit-scrollbar {
    height: 4px;
}

.menu-buttons::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.menu-buttons::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.menu-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Main content area */


.dashboard-header {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    color: #666;
    font-size: 14px;
}

.logout-btn {
    padding: 8px 16px;
    background: rgb(0, 7, 49);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgb(1, 12, 73);;
}

.logout-btnb {
    padding: 8px 16px;
    background: #4b3700;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btnb:hover {
    background: #725400;
}

.logout-btnc {
    padding: 8px 16px;
    background: rgba(6, 59, 80, 0.9); 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btnc:hover {
    background: rgba(5, 70, 95, 0.9); 
}

/* Dashboard quick-links */
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #0f113d;
    box-shadow: 0 8px 24px rgba(15, 17, 61, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.link-card .image-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card .image-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.link-card .label {
    font-size: 16px;
    font-weight: 600;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 17, 61, 0.14);
    background: linear-gradient(90deg, rgba(15,17,61,0.03), rgba(61,85,255,0.02));
}

td input[type="file"] {
    width: 100%;
    max-width: 200px;
}

.attachment-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.attachment-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attachment-preview-item {
    width: 92px;
    padding: 4px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 1px 3px rgba(15, 17, 61, 0.06);
    overflow: hidden;
}

.attachment-preview-item img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    background: #ffffff;
}

@media (max-width: 768px) {
    .attachment-preview {
        gap: 8px;
    }

    .attachment-preview-list {
        gap: 8px;
    }

    .attachment-preview-item {
        width: 72px;
        padding: 3px;
    }

    .attachment-preview-item img {
        height: 52px;
    }
}

.switch-mode-header{
    text-align:center; 
    background: rgb(0, 7, 49); 
    color: #fff;
    text-decoration: dotted;
    padding: 8px 0;
    font-size: 0.8em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:100;
}

.switch-mode-headerb{
    text-align:center; 
    background: rgb(61, 46, 3); 
    color: #fff;
    text-decoration: dotted;
    padding: 8px 0;
    font-size: 0.8em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:100;
}

.switch-mode-headerb a{
    color: rgb(228, 228, 228);
}

.switch-mode-header a{
    color: rgb(228, 228, 228);
}

.switch-mode-headerc{
    text-align:center; 
    background: rgb(6, 59, 80); 
    color: #fff;
    text-decoration: dotted;
    padding: 8px 0;
    font-size: 0.8em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:100;
}

.switch-mode-headerc a{
    color: rgb(228, 228, 228);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.footer-content{
    padding: 10px 30px;
    background: #fff;
    text-align: center;
}