/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Import module styles */
@import url("modules/calendar.css");
@import url("modules/form.css");
@import url("modules/task.css");
@import url("modules/notifications.css");

/* CSS Variables for consistent styling */
:root {
    --primary-color: #1A3663;
    --primary-light: #2d5494;
    --secondary-color: #4A90E2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-900: #212529;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition-base: all 0.3s ease;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-100);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Added for better overall responsiveness */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--primary-color);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #1A3663;
    color: white;
    padding: 0;
    position: fixed;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-top-logo {
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    background-color: #1A3663;
}

.top-logo-img {
    max-width: 180px;
    height: auto;
    transition: transform 0.2s ease;
}

.top-logo-img:hover {
    transform: scale(1.05);
}

.sidebar ul {
    color: white;
    background-color: #1A3663;
}

.sidebar ul li a {
    color: white;
    transition: all 0.2s ease;
    display: inline-block;
}

.sidebar ul li a:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    box-shadow: 0 0 0 2px #4A90E2;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
    padding: 8px 8px;
    margin: 0 -8px;
}

.sidebar h2 {
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.sidebar-logo {
    padding: 1rem;
    text-align: center;
    background: var(--primary-color);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 120px;
    height: auto;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    height: 200px;
    margin-bottom: 1rem;
    background-color: #1A3663;
    position: relative;
}

.sidebar-user-info .plus-icon {
    position: absolute;
    right: 157.5px;
    bottom: 40px;
    width: 24px;
    height: 24px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-user-info .plus-icon:hover {
    background-color: #218838;
}

.sidebar-user-info i {
    font-size: 6rem;
    color: white;
}

.sidebar-user-info .user-details {
    display: flex;
    flex-direction: column;
    color: white;
}

.sidebar-user-info .user-details small {
    opacity: 0.7;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #1A3663;
    color: white;
    padding: 0;
    position: fixed;
    display: flex;
    flex-direction: column;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: white;
    flex: 1;
}

.sidebar ul li {
    padding: 0.5rem 2rem;
}

.sidebar ul li a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar ul li a:hover {
    opacity: 0.8;
    background-color: var(--gray-100);
}

/* Main content styles */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    flex: 1; /* Allow main content to take up remaining space */
    background: white;
}

.home-container {
    display: flex;
    height: calc(100vh - 75px); /* Adjust based on top banner height */
    flex-wrap: wrap; /* Allow elements to wrap on smaller screens */
}

.side-banner {
    width: 218px;
    flex-shrink: 0;
    background: linear-gradient(to bottom, var(--primary-color) 200px, white 200px);
    margin-bottom: 20px; /* Add margin for better spacing on smaller screens */
}


@media (max-width: 850px) {
    .sidebar {
        width: 140px;
    }
    .main-content {
        margin-left: 140px;
        width: calc(100% - 140px);
    }
    .banner-content {
        margin-left: 140px;
        width: calc(100% - 140px);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        width: 280px; /* Slightly wider for better touch targets */
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        border-radius: 0 8px 8px 0;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1001; /* Above overlay */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Add overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 15px; /* Reduced since banner is hidden */
        min-height: 100vh;
    }

    /* Hide banner completely on mobile */
    .top-banner {
        display: none;
    }

    .banner-content {
        display: none;
    }



    /* Hide user info section on mobile */
    .sidebar-user-info {
        display: none;
    }

    /* Improve sidebar navigation for mobile */
    .sidebar ul li a {
        padding: 16px;
        font-size: 0; /* Hide text */
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin: 4px 8px;
        position: relative;
        width: 56px;
        height: 56px;
    }

    .sidebar ul li a i {
        margin: 0;
        font-size: 24px;
        width: auto;
        text-align: center;
    }

    /* Hide all text in sidebar links on mobile */
    .sidebar ul li a span,
    .sidebar ul li a .notification-badge {
        display: none;
    }

    /* Adjust sidebar width for icon-only layout */
    .sidebar {
        width: 80px !important;
    }

    /* Show mobile-only notification in sidebar */
    .mobile-only {
        display: block;
    }

    /* Position notification badge in sidebar */
    .sidebar .notification-badge {
        position: absolute;
        top: 8px;
        right: 20px;
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
    }

    .search-container {
        width: 100%; /* Full width on mobile */
        max-width: 300px; /* But not too wide */
    }

    .side-banner {
        width: 100%; /* Make side banner full width */
    }
    .card-container {
        grid-template-columns: 1fr; /* Make cards stack vertically */
    }
    .bottom-box-container {
        flex-direction: column; /* Stack boxes vertically on smaller screens */
    }
    .bottom-box-outer-container {
        width: 100%;
    }
    .content-box{
        width: 100%;
    }
    .bottom-box {
        width: 100%;
    }
}


/* Layout components */
.top-banner {
    background: #1A3663;
    padding: 1rem 0;
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin-left: 250px;
    width: calc(100% - 250px);
    position: relative;
    height: 100%;
}

.banner-left {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 125px), -50%);
    display: flex;
    align-items: center;
}

.banner-right {
    margin-left: auto;
    margin-right: 20px; /* Changed from -400px to provide proper spacing */
    display: flex;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.3rem;
    width: 300px;
}

.banner-search {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    width: 100%;
    outline: none;
    border-radius: 25px;
}

.banner-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

.banner-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Allow wrapping of icons on smaller screens */
    justify-content: flex-end; /* Right align the icons */
}

.banner-icons a {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 5px; /* Add padding for better touch targets */
}

.banner-icons a:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.banner-icons .badge {
    font-size: 0.6rem;
    transform: translate(-50%, -50%);
}

.help-icon-btn {
    position: fixed;
    top: 90px;
    right: 30px;
    background-color: #49D440;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid white;
}

.help-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    background-color: #3fb936;
    color: white;
}

.help-icon-btn i {
    font-size: 28px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info i {
    font-size: 2rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details small {
    opacity: 0.8;
}

.admin-dashboard {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Content Box */
.content-box {
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid #1A3663;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    width: 100%;
    min-height: 250px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}


/* Bottom Box */
.bottom-box {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.tasks-list-container::-webkit-scrollbar {
    width: 8px;
}

.tasks-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tasks-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tasks-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: white;
    border-bottom: 1px solid var(--gray-300);
}

.bottom-box-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Bottom Boxes Layout */
.bottom-boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* New Grid Layout for Bottom Boxes */
.bottom-boxes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    position: relative;
}

.bottom-box-outer-container {
    width: 100%;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Media Queries for Bottom Boxes Grid */
@media (max-width: 1200px) {
    .bottom-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bottom-boxes-grid {
        grid-template-columns: 1fr;
    }
}

/* Card styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Button styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

/* Task tab buttons */
/* Task tab styles */
.task-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.task-tab:hover {
    color: #1A3663;
}

.task-tab.active {
    background-color: #1A3663;
    color: white;
    border-radius: 4px;
}

.task-tab.active:hover {
    background-color: #2d5494;
}

/* Keep original colors for other primary/secondary buttons */
.btn-primary:not(.task-container .btn-group .btn-primary) {
    background-color: #49D440;
    border-color: #49D440;
}

.btn-primary:not(.task-container .btn-group .btn-primary):hover {
    background-color: #3fb936;
    border-color: #3fb936;
}

.btn-secondary {
    background-color: #E63E3E;
    border-color: #E63E3E;
}

.btn-secondary:hover {
    background-color: #d63434;
    border-color: #d63434;
}

/* Utility classes */
.delete-user {
    display: inline-block;
    margin-left: 5px;
}


/* Form controls */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
}

.password-toggle:hover {
    color: var(--gray-900);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 99, 0.25);
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 20px;
}

/* Settings Page Styles */
.settings-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-container h1 {
    color: var(--gray-900);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.settings-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.settings-section h2 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: lowercase;
}

.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
    font-weight: 500;
}

.info-group span {
    color: var(--gray-900);
}

.password-form {
    max-width: 100%;
}

.password-form .form-group {
    margin-bottom: 1rem;
}

.password-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: white;
}

.update-password {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.update-password:hover {
    background: var(--primary-light);
}

.settings-container h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.settings-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.settings-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.info-group span {
    color: var(--gray-900);
}

.security-section {
    grid-column: 1 / -1;
}

.password-form {
    max-width: 400px;
}

.password-form .form-group {
    margin-bottom: 1rem;
}

.password-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.update-password {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.update-password:hover {
    background: var(--primary-light);
}

.tasks-list-container {
    padding: 0 15px 15px 15px;
    max-height: 220px;
    overflow-y: auto;
    position: relative;
    background: white;
}

.task-card {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: white;
    z-index: 1;
}


.task-card .status-badge {
    position: absolute;
    right: 10px;
    top: 10px;
}


.notification-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #000000;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-badge {
    display: none;
}
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #48BB78, #38A169);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(72, 187, 120, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

.fab i {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.fab:hover i {
    transform: rotate(90deg);
}

/* Mobile responsiveness for FAB */
@media (max-width: 768px) {
    .fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .fab i {
        font-size: 20px;
    }
}

/* Hamburger Menu for smaller screens */
.hamburger-menu {
    display: none; /* Hide by default */
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001; /* Ensure it's above the sidebar */
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
    transition: transform 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1800px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    .banner-content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 1400px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    .banner-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }
    .main-content {
        margin-left: 180px;
        width: calc(100% - 180px);
    }
    .banner-content {
        margin-left: 180px;
        width: calc(100% - 180px);
    }
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .content-box {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 160px;
    }
    .main-content {
        margin-left: 160px;
        width: calc(100% - 160px);
    }
    .banner-content {
        margin-left: 160px;
        width: calc(100% - 160px);
    }
    .card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    /* Better spacing for tablets */
    .d-flex {
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger menu on smaller screens */
    }
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Make the flex layout stack vertically on mobile */
    .d-flex {
        flex-direction: column !important;
    }
    /* Reset the flex values for the columns */
    .d-flex .d-flex.flex-column {
        flex: 1 !important;
    }
}

@media (max-width: 576px) {
    /* Extra spacing adjustments for mobile */
    .card-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    .content-box {
        padding: 15px 10px;
        min-height: 100px;
    }
    /* Adjust font sizes for small screens */
    .content-box h3 {
        font-size: 16px !important;
    }
    .content-box p {
        font-size: 50px !important;
    }
    .content-box p span {
        font-size: 18px !important;
    }

    /* Make tables horizontally scrollable on small screens */
    .table-responsive {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Improve button sizing for touch */
    .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-sm {
        padding: 8px 12px;
        min-height: 36px;
    }

    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 10px;
        max-width: none;
        width: auto;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }

    /* Form improvements for mobile */
    .form-control,
    .form-select {
        padding: 12px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
    }

    .form-label {
        font-weight: 600;
        margin-bottom: 8px;
    }

    /* Search container improvements */
    .banner-search {
        border-radius: 8px 0 0 8px;
    }

    .search-button {
        border-radius: 0 8px 8px 0;
    }

    /* Floating Action Button for mobile */
    .fab-mobile {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1050;
        transition: all 0.3s ease;
    }

    .fab-mobile:hover {
        background: var(--primary-light);
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .fab-mobile:active {
        transform: scale(0.95);
    }
}

/* Hide mobile-specific elements on desktop */
@media (min-width: 769px) {
    .fab-mobile {
        display: none;
    }
    
    .mobile-only {
        display: none;
    }
}

/* Modal Loading Indicator */
.modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.modal-loading p {
    margin-top: 15px;
    font-size: 18px;
}

/* User styles */
.sidebar-user-info .plus-icon {
    display: none !important;
}

.task-container .btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hide list buttons in admin interface */
.admin-dashboard .list-group-item .fa-angle-right,
.admin-dashboard button.list-group-item,
.admin-dashboard .btn-group button[class*="list"] {
    display: none !important;
}

.admin-dashboard .list-group-item {
    pointer-events: none;
}