body {
    font-size: .875rem;
    background-color: #f5f5f5;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #2470dc;
}

.sidebar .nav-link:hover {
    color: #007bff;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Navbar */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

/* Content */
.main-content {
    padding-top: 1.5rem;
    transition: margin-left 0.3s ease-in-out;
}

/* Forms */
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Dashboard cards */
.card-dashboard {
    border-radius: 0.35rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1rem;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tables */
.table-responsive {
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-height: 200px;
}

/* Custom page styles */
.login-page {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 20px rgba(0,0,0,0.2);
    padding: 2rem;
}

/* Logo and title styles */
.logo-container {
    margin-bottom: 0.3rem;
}

.company-logo {
    max-width: 35px;
    max-height: 35px;
    width: auto;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    object-fit: contain;
}

.system-title {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.system-subtitle {
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Task status colors */
.status-pending {
    background-color: #ffeeba;
}
.status-in-progress {
    background-color: #b8daff;
}
.status-completed {
    background-color: #c3e6cb;
}
.status-delayed {
    background-color: #f5c6cb;
}

/* Analytics graphs */
.analytics-chart-container {
    position: relative;
    height: 300px;
}

/* Alert container */
#alertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

/* Custom sidebar toggle animation */
.sidebar-toggle-icon {
    transition: transform 0.3s;
}

body.sidebar-collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* Override sidebar background color */
#sidebarMenu.bg-light,
.sidebar.bg-light {
    background-color: #f0f0f0 !important; /* Grey color for sidebar */
}

/* Improve sidebar styling for better user experience */
.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link.active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Ensure consistent padding in sidebar items */
.sidebar .nav-link {
    padding: 0.75rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        width: auto !important;
    }
    
    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }
    
    #sidebarToggle {
        margin-left: 0.5rem;
    }
    
    .company-logo {
        max-width: 70px;
        max-height: 70px;
    }
    
    .system-title {
        font-size: 1.2rem;
    }
    
    .system-subtitle {
        font-size: 0.9rem;
    }
    
    .login-container {
        padding: 1.5rem;
    }
}

/* Improve print appearance */
@media print {
    .sidebar, .navbar, #sidebarToggle, .btn-toolbar, .modal, footer {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
