/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    text-size-adjust: 100%;
}

.container {
    flex: 1;
}

/* Header Styling */
header {
    background-color: #333333;
    color: #ffffff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 240px; /* Matches expanded sidebar width */
    width: calc(100% - 240px); /* Full width minus sidebar width */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
    height: 60px;
}

/* Footer Styling */
.footer {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 240px; /* Matches expanded sidebar width */
    width: calc(100% - 240px); /* Full width minus sidebar width */
    z-index: 1000;
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

/* Collapsed State */
body.sidebar-collapsed header,
body.sidebar-collapsed .footer {
    left: 60px; /* Matches collapsed sidebar width */
    width: calc(100% - 60px); /* Full width minus collapsed sidebar width */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header,
    .footer {
        left: 0 !important;
        width: 100% !important;
    }
    
    body.sidebar-collapsed header,
    body.sidebar-collapsed .footer {
        left: 60px !important;
        width: calc(100% - 60px) !important;
    }
}

/* Header Title */
.header-title h1 {
    margin: 0;
    font-size: 1.5rem; /* Adjusted font size for better balance */
}

.header-title h1 span.repair-color {
    color: #FF69B4;
}

/* Footer Text */
.footer p {
    margin: 0;
}

.footer p span {
    color: #FF69B4;
}

/* Language Switcher */
.language-switcher select {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.language-switcher select option {
    background-color: #ffffff;
    color: #333333;
}

/* Table Header Alignment */
th {
    text-align: match-parent;
}

/* Print Color Adjust */
.form-check-input {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    accent-color: exact;
}

/* Consistent Feather Icon Sizes */
.nav .nav-link span[data-feather] {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #ffffff;
}

.nav .nav-link:hover span[data-feather] {
    color: #1e90ff;
}

.nav .nav-link.active span[data-feather] {
    color: #ffffff;
}