/*START NG CSS OF INDEX*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

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

a {
	text-decoration: none;
}

li {
	list-style: none;
}

:root {
	--poppins: 'Poppins', sans-serif;
	--lato: 'Lato', sans-serif;

	--light: #F9F9F9;
	--blue: #851424;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
}

html {
	overflow-x: hidden;
}

body.dark {
	--light: #570E19;
	--grey: #130608;
	--dark: #FBFBFB;
}

body {
	background: var(--grey);
	overflow-x: hidden;
}





/* SIDEBAR */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: var(--light);
	z-index: 2000;
	font-family: var(--lato);
	transition: .3s ease;
	overflow-x: hidden;
	scrollbar-width: none;
}
#sidebar::--webkit-scrollbar {
	display: none;
}
#sidebar.hide {
	width: 60px;
}
#sidebar .brand {
	font-size: 24px;
	font-weight: 700;
	height: 56px;
	display: flex;
	align-items: center;
	color: var(--dark);
	position: sticky;
	top: 0;
	left: 0;
	background: var(--light);
	z-index: 500;
	padding-bottom: 20px;
	box-sizing: content-box;
}
#sidebar .brand .bx {
	min-width: 60px;
	display: flex;
	justify-content: center;
}
#sidebar .side-menu {
	width: 100%;
	margin-top: 48px;
}
#sidebar .side-menu li {
	height: 48px;
	background: transparent;
	margin-left: 6px;
	border-radius: 48px 0 0 48px;
	padding: 4px;
}
#sidebar .side-menu li.active {
	background: var(--grey);
	position: relative;
}
#sidebar .side-menu li.active::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: -40px;
	right: 0;
	box-shadow: 20px 20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li.active::after {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	bottom: -40px;
	right: 0;
	box-shadow: 20px -20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li a {
	width: 100%;
	height: 100%;
	background: var(--light);
	display: flex;
	align-items: center;
	border-radius: 48px;
	font-size: 16px;
	color: var(--dark);
	white-space: nowrap;
	overflow-x: hidden;
}
#sidebar .side-menu.top li.active a {
	color: var(--blue);
}
#sidebar.hide .side-menu li a {
	width: calc(48px - (4px * 2));
	transition: width .3s ease;
}
#sidebar .side-menu li a.logout {
	color: var(--red);
}
#sidebar .side-menu.top li a:hover {
	color: var(--blue);
}
#sidebar .side-menu li a .bx {
	min-width: calc(60px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
/* SIDEBAR */





/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 280px);
	left: 280px;
	transition: .3s ease;
}
#sidebar.hide ~ #content {
	width: calc(100% - 60px);
	left: 60px;
}




/* NAVBAR */
#content nav {
	height: 56px;
	background: var(--light);
	padding: 0 24px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	font-family: var(--lato);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}
#content nav::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	bottom: -40px;
	left: 0;
	border-radius: 50%;
	box-shadow: -20px -20px 0 var(--light);
}
#content nav a {
	color: var(--dark);
}
#content nav .bx.bx-menu {
	cursor: pointer;
	color: var(--dark);
	font-size: 24px;
	display: block;
}
#content nav .nav-link {
	font-size: 16px;
	transition: .3s ease;
}
#content nav .nav-link:hover {
	color: var(--blue);
}
#content nav form {
	max-width: 400px;
	width: 100%;
	margin-right: auto;
}
#content nav form .form-input {
	display: flex;
	align-items: center;
	height: 36px;
}
#content nav form .form-input input {
	flex-grow: 1;
	padding: 0 16px;
	height: 100%;
	border: none;
	background: var(--grey);
	border-radius: 36px 0 0 36px;
	outline: none;
	width: 100%;
	color: var(--dark);
}
#content nav form .form-input button {
	width: 36px;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--blue);
	color: var(--light);
	font-size: 18px;
	border: none;
	outline: none;
	border-radius: 0 36px 36px 0;
	cursor: pointer;
}
#content nav .notification {
	font-size: 20px;
	position: relative;
}
#content nav .notification .num {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	color: var(--light);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content nav .profile img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
}
#content nav .switch-mode {
	display: block;
	min-width: 50px;
	height: 25px;
	border-radius: 25px;
	background: var(--grey);
	cursor: pointer;
	position: relative;
}
#content nav .switch-mode::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	bottom: 2px;
	width: calc(25px - 4px);
	background: var(--blue);
	border-radius: 50%;
	transition: all .3s ease;
}
#content nav #switch-mode:checked + .switch-mode::before {
	left: calc(100% - (25px - 4px) - 2px);
}
/* NAVBAR */





/* MAIN */
#content main {
	width: 100%;
	padding: 36px 24px;
	font-family: var(--poppins);
	max-height: calc(100vh - 56px);
	overflow-y: auto;
}
#content main .head-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-gap: 16px;
	flex-wrap: wrap;
}
#content main .head-title .left h1 {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--dark);
}
#content main .head-title .left .breadcrumb {
	display: flex;
	align-items: center;
	grid-gap: 16px;
}
#content main .head-title .left .breadcrumb li {
	color: var(--dark);
}
#content main .head-title .left .breadcrumb li a {
	color: var(--dark-grey);
	text-decoration: none;
	transition: color 0.3s ease;
	cursor: pointer;
}
#content main .head-title .left .breadcrumb li a:hover {
	color: var(--blue);
	text-decoration: underline;
}
#content main .head-title .left .breadcrumb li a.active {
	color: var(--blue);
	pointer-events: none;
}
#content main .head-title .btn-download {
	height: 36px;
	padding: 0 16px;
	border-radius: 36px;
	background: var(--blue);
	color: var(--light);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-gap: 10px;
	font-weight: 500;
}




#content main .box-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 24px;
	margin-top: 36px;
}
#content main .box-info li {
	padding: 24px;
	background: var(--light);
	border-radius: 20px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
}
#content main .box-info li .bx {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	font-size: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content main .box-info a:nth-child(1) li .bx {
	background: var(--light-blue);
	color: var(--blue);
}
#content main .box-info a:nth-child(2) li .bx {
	background: var(--light-yellow);
	color: var(--yellow);
}
#content main .box-info a:nth-child(3) li .bx {
	background: var(--light-orange);
	color: var(--orange);
}
#content main .box-info a:nth-child(4) li .bx {
	background: var(--light-orange);
	color: var(--orange);
}
#content main .box-info li .text h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--dark);
}
#content main .box-info li .text p {
	color: var(--dark);	
}
.box-info a.box-link {
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 20px;
	display: block;
}

.box-info a.box-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.box-info li {
	cursor: pointer;
}



#content main .table-data {
	display: flex;
	flex-wrap: wrap;
	grid-gap: 24px;
	margin-top: 24px;
	width: 100%;
	color: var(--dark);
}
#content main .table-data > div {
	border-radius: 20px;
	background: var(--light);
	padding: 24px;
	overflow-x: auto;
}
#content main .table-data .head {
	display: flex;
	align-items: center;
	grid-gap: 16px;
	margin-bottom: 24px;
}
#content main .table-data .head h3 {
	margin-right: auto;
	font-size: 24px;
	font-weight: 600;
}
#content main .table-data .head .bx {
	cursor: pointer;
}

#content main .table-data .order {
	flex-grow: 1;
	flex-basis: 500px;
}
#content main .table-data .order table {
	width: 100%;
	border-collapse: collapse;
}
#content main .table-data .order table th {
	padding-bottom: 12px;
	font-size: 13px;
	text-align: left;
	border-bottom: 1px solid var(--grey);
}
#content main .table-data .order table td {
	padding: 20px 12px;
	vertical-align: middle;
}
#content main .table-data .order table tr td:first-child {
	display: flex;
	align-items: center;
	grid-gap: 12px;
	padding-left: 6px;
}
#content main .table-data .order table td img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
#content main .table-data .order table tbody tr {
	border-bottom: 1px solid #f0f0f0;
}

#content main .table-data .order table tbody tr:hover {
	background: var(--grey);
}

/*Filter Group*/
.table-data .order .filter-group { 
	display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
	justify-content: center;
	align-items: center;
	padding-bottom: 16px;
}
.table-data .order .filter-group.hide {
    display: none !important;
}

/* Additional specificity for hide class */
.filter-group.hide {
    display: none !important;
}
.table-data .order .filter-group .filter-option {
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 10px;
    padding: 3px 10px;
    margin-right: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.table-data .order .filter-group .filter-option.active,
.table-data .order .filter-group .filter-option:hover {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
}

/* Hide filtered rows */
.table-data .order table tr.hide {
    display: none !important;
}

/* Simple Sort Icon */
#sortBtn {
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

#sortBtn:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

#sortBtn.reversed {
    color: var(--primary);
    background-color: rgba(102, 126, 234, 0.1);
}

/* CSS for the different submission statuses - Standardized Colors */

/* Pending Status - Yellow */
.status-pending {
    background-color: #FFC107; /* Yellow */
    color: #000000;            /* Black text for contrast */
    border: 1px solid #E6A800; /* Darker yellow border */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Approved Status - Green */
.status-approved {
    background-color: #4CAF50; /* Green */
    color: #FFFFFF;            /* White text for contrast */
    border: 1px solid #45A049; /* Darker green border */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Rejected Status - Red */
.status-rejected {
    background-color: #F44336; /* Red */
    color: #FFFFFF;            /* White text for contrast */
    border: 1px solid #D32F2F; /* Darker red border */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Returned Status - Blue */
.status-returned {
    background-color: #2196F3; /* Blue */
    color: #FFFFFF;            /* White text for contrast */
    border: 1px solid #1976D2; /* Darker blue border */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

#content main .table-data .order table tr td .status {
	font-size: 12px;
	padding: 6px 16px;
	width: 100px; /* ✅ Fixed width */
	color: var(--light);
	border-radius: 20px;
	font-weight: 700;
	display: inline-block;
	text-align: center;
	min-width: 90px; /* Ensures consistent badge size */
}
#content main .table-data .order table tr td .status.completed {
	background: #4CAF50; /* Green for Approved */
	color: #FFFFFF;
}
#content main .table-data .order table tr td .status.process {
	background: #FFC107; /* Yellow for Pending */
	color: #000000;
}
#content main .table-data .order table tr td .status.pending {
	background: #FFC107; /* Yellow for Pending */
	color: #000000;
}
#content main .table-data .order table tr td .status.approved {
	background: #4CAF50; /* Green for Approved */
	color: #FFFFFF;
}
#content main .table-data .order table tr td .status.rejected {
	background: #F44336; /* Red for Rejected */
	color: #FFFFFF;
}
#content main .table-data .order table tr td .status.returned {
	background: #2196F3; /* Blue for Returned */
	color: #FFFFFF;
}


#content main .table-data .todo {
	flex-grow: 1;
	flex-basis: 500px; 
}
#content main .table-data .todo .todo-list {
	width: 100%;
}
#content main .table-data .todo .todo-list li {
	width: 100%;
	margin-bottom: 16px;
	background: var(--grey);
	border-radius: 10px;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#content main .table-data .todo .todo-list li .bx {
	cursor: pointer;
}
#content main .table-data .todo .todo-list li.completed {
	border-left: 10px solid var(--blue);
}
#content main .table-data .todo .todo-list li.not-completed {
	border-left: 10px solid var(--orange);
}
#content main .table-data .todo .todo-list li:last-child {
	margin-bottom: 0;
}

/* Add the scroll styling here for the form container */
.todo {
    max-height: 80vh; /* Adjust as needed for form length */
    overflow-y: auto;
	scrollbar-width: thin; /* Firefox */
    padding-right: 10px; /* Add padding to avoid cutting off the scrollbar */
}

/* Chrome, Edge, Safari */
.todo::-webkit-scrollbar {
    width: 8px;
}

.todo::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 12px;
}

.todo::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Grid wrapper */
.table-data .order .equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Card design */
.table-data .order .equipment-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
}

.table-data .order .equipment-card:hover {
    transform: scale(1.02);
}

/* Equipment image */
.table-data .order .equipment-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: block;
    background: #f4f4f4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Responsive: smaller images on small screens */
@media (max-width: 600px) {
    .table-data .order .equipment-img {
        width: 90px;
        height: 90px;
    }
}

/* Card content */
.table-data .order .equipment-card h4 {
    margin: 0.4rem 0;
    font-size: 1rem;
    color: #333;
}

.table-data .order .equipment-card p {
    margin: 0.2rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Card buttons */
.table-data .order .card-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.table-data .order .card-actions button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.table-data .order .card-actions .btn-view-card {
    background-color: #1f4172;
    color: white;
}

.table-data .order .card-actions .btn-edit-card {
    background-color: #f0ad4e;
    color: black;
}

.table-data .order .card-actions .btn-delete-card {
    background-color: #d9534f;
    color: white;
}

.table-data .order .card-actions .btn-borrow-card {
    background-color: #28a745;
    color: white;
}

.table-data .order .card-actions button:hover {
    opacity: 0.9;
}

/* CALENDAR */

		.todo .calendar-controls {
    		display: flex;
    		justify-content: space-between;
    		align-items: center;
    		margin-bottom: 20px;
    		padding: 15px;
    		background-color: white;
    		border-radius: 8px;
    		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
		}

        .todo .calendar-controls button {
            background-color: var(--primary);
            color: black;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }
        .todo .calendar-controls button:hover {
            background-color: var(--secondary);
            transform: translateY(-1px);
        }
        .todo .calendar-controls h2 {
            margin: 0;
            font-size: 1.5rem;
        }
        .todo .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 10px;
			padding: 10px;
        }

		.todo .calendar-header {
            background-color: white;
            font-weight: bold;
            text-align: center;
            padding: 10px;
            border-radius: 5px;
        }
        .todo .calendar-day {
            background-color: white;
            border-radius: 5px;
            padding: 10px;
            min-height: 100px;
            position: relative;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            cursor: pointer;
        }

		.todo .calendar-day:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .todo .calendar-day.empty {
            background-color: #f8f9fa;
            box-shadow: none;
        }
        .todo .calendar-day.empty:hover {
            transform: none;
            box-shadow: none;
            cursor: default;
        }

		.todo .date-number {
            font-weight: bold;
            margin-bottom: 5px;
        }
        .todo .event-preview {
            font-size: 0.75rem;
            padding: 3px 6px;
            margin: 2px 0;
            border-radius: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            background-color: rgba(67, 97, 238, 0.1);
            border-left: 3px solid var(--primary);
        }

		.todo .event-preview.work {
            background-color: rgba(58, 12, 163, 0.1);
            border-left-color: var(--secondary);
        }
        .todo .event-preview.personal {
            background-color: rgba(46, 204, 113, 0.1);
            border-left-color: var(--success);
        }
        .todo .event-preview.special {
            background-color: rgba(243, 156, 18, 0.1);
            border-left-color: var(--warning);
        }
        .todo .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .todo .modal.active {
            display: flex;
        }
        .todo .modal-content {
            background-color: white;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transform: translateY(-50px);
            opacity: 0;
            transition: all 0.3s;
        }

        .todo .modal.active .modal-content {
            transform: translateY(0);
            opacity: 1;
        }
        .todo .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        .todo .modal-header h3 {
            margin: 0;
            color: var(--primary);
        }
        .todo .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--dark);
        }

		.todo .event-meta .event-venue {
            background-color: rgba(46, 204, 113, 0.1);
            color: var(--success);
        }
        .todo .event-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .todo .event-actions button {
            padding: 8px 15px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

		.todo .event-actions .edit-btn {
            background-color: var(--light);
            color: var(--dark);
        }
        .todo .event-actions .delete-btn {
            background-color: var(--danger);
            color: white;
        }

		.todo .event-actions button:hover {
            transform: translateY(-1px);
        }

		 @media (max-width: 768px) {
            .todo .calendar-grid {
                gap: 5px;
            }

		.todo .calendar-day {
                min-height: 80px;
                padding: 5px;
                font-size: 0.8rem;
            }
            
        .todo .date-number {
                font-size: 1rem;
            }
            
        .todo .event-preview {
                font-size: 0.6rem;
                padding: 2px 4px;
            }
        }
        @media (max-width: 480px) {
            .todo .calendar-controls {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
            
            .todo .calendar-day {
                min-height: 60px;
            }
        }

        /* Event indicators for calendar */
        .todo .calendar-day.has-events {
            background-color: #f8f9fa;
            cursor: pointer;
            position: relative;
        }

        .todo .calendar-day.has-events:hover {
            background-color: #e9ecef;
            transform: scale(1.02);
        }

        .todo .event-indicator {
            position: absolute;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            bottom: 4px;
            right: 4px;
            cursor: pointer;
            transition: transform 0.2s;
            z-index: 10;
        }

        .todo .event-indicator:hover {
            transform: scale(1.2);
        }

        .todo .event-indicator.event-borrow {
            background-color: #4CAF50; /* Green for borrow events (Approved) */
        }

        .todo .event-indicator.event-return {
            background-color: #2196F3; /* Blue for return events (Returned) */
        }

        /* Multiple events on same day */
        .todo .calendar-day .event-indicator:nth-child(2) {
            bottom: 12px;
            right: 2px;
        }

        .todo .calendar-day .event-indicator:nth-child(3) {
            bottom: 2px;
            right: 12px;
        }
        
        /* Calendar Legends */
        .todo .calendar-legends {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 10px 0;
            flex-wrap: wrap;
        }
        
        .todo .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--dark);
        }
        
        .todo .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: inline-block;
        }
        
        .todo .legend-color.green {
            background-color: #4CAF50;
        }
        
        .todo .legend-color.blue {
            background-color: #2196F3;
        }
        
        .todo .legend-color.purple {
            background-color: #9C27B0;
        }
        
        .todo .legend-text {
            font-weight: 500;
        }
        
        /* Navigation buttons for multi-event modal */
        .nav-btn {
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
            min-width: 50px !important;
            min-height: 50px !important;
            width: 50px !important;
            height: 50px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            font-size: 24px !important;
            line-height: 1 !important;
            padding: 0 !important;
        }
        
        .nav-btn:hover {
            background: #0056b3 !important;
            transform: translateY(-50%) scale(1.1) !important;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
        }
        
        .nav-btn:active {
            transform: translateY(-50%) scale(0.95) !important;
        }
        
        /* Event counter styling */
        .event-counter {
            background: rgba(0, 0, 0, 0.8) !important;
            color: white !important;
            padding: 8px 12px !important;
            border-radius: 20px !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            letter-spacing: 0.5px !important;
        }

        /* Event Details Modal - BEIMS Style */
        .event-details-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }

        .event-details-content {
            background: var(--grey);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            animation: slideUp 0.3s ease;
        }

        .event-details-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
            background: var(--primary);
            color: white;
            border-radius: 16px 16px 0 0;
        }

        .event-details-header h3 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .close-event-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: background-color 0.2s;
        }

        .close-event-modal:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .event-details-body {
            padding: 25px;
        }

        .borrower-info, .event-dates, .borrowed-items-section {
            margin-bottom: 25px;
        }

        .borrower-info h4, .event-dates h4, .borrowed-items-section h4 {
            margin: 0 0 15px 0;
            color: var(--dark);
            font-size: 1.1rem;
            font-weight: 600;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 8px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }

        .info-item {
            padding: 14px 16px;
            background: white;
            border-radius: 10px;
            border-left: 4px solid var(--primary);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        }

        .info-item strong {
            color: var(--dark);
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .event-type-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .event-type-badge.borrow {
            background-color: #4CAF50; /* Green for borrow events (Approved) */
            color: white;
        }

        .event-type-badge.return {
            background-color: #2196F3; /* Blue for return events (Returned) */
            color: white;
        }

        .items-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .item-card {
            background: white;
            border-radius: 10px;
            padding: 16px;
            border: 1px solid #eee;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .item-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .item-name {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .item-quantity {
            color: var(--light);
            font-size: 0.9rem;
        }

        .event-details-footer {
            padding: 20px 25px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            gap: 15px;
        }

        .btn-view-form, .btn-close-modal {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .btn-view-form {
            background: var(--primary);
            color: white;
        }

        .btn-view-form:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .btn-close-modal {
            background: var(--light);
            color: var(--dark);
        }

        .btn-close-modal:hover {
            background: #ddd;
        }

        .loading, .no-items, .error {
            text-align: center;
            padding: 20px;
            color: var(--light);
            font-style: italic;
        }

        .error {
            color: var(--danger);
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(30px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .event-details-content {
                width: 95%;
                margin: 10px;
            }

            .info-grid {
                grid-template-columns: 1fr;
            }

            .items-grid {
                grid-template-columns: 1fr;
            }

            .event-details-footer {
                flex-direction: column;
            }
        }

		/*Borrowers Form Items Card*/

.todo .borrowed-items-card {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
	margin-bottom: 25px;
}

.todo .borrowed-items-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2e2e2e;
}

.todo .borrowed-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.todo .borrowed-items-table thead {
    background-color: #f3f4f6;
}

.todo .borrowed-items-table th,
.todo .borrowed-items-table td {
    text-align: left;
    padding: 12px 15px;
    color: #333;
}

.todo .borrowed-items-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.todo .borrowed-items-table tbody tr:hover {
    background-color: #eef2f7;
    transition: background-color 0.3s;
}

/*Borrowers Form Items Card*/

.todo .borrowed-items-card {
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
  margin-bottom: 25px;
}

.todo .borrowed-items-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2e2e2e;
}

.todo .borrowed-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
}

.todo .borrowed-items-table thead {
    background-color: #f3f4f6;
}

.todo .borrowed-items-table th,
.todo .borrowed-items-table td {
    text-align: left;
    padding: 12px 15px;
    color: #333;
}

.todo .borrowed-items-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.todo .borrowed-items-table tbody tr:hover {
    background-color: #eef2f7;
    transition: background-color 0.3s;
}


/*Admin Acc Form*/

.title {
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 20px;
}
.form-group {
	margin-bottom: 14px;
}
.form-group label {
	font-weight: 600;
	display: inline-block;
	margin-bottom: 4px;
}
.input-group {
	width: 100%;
	position: relative;
}
.input-group input {
	padding: 12px 40px 12px 20px;
	outline: none;
	border-radius: 6px;
	border: 1px solid var(--dark-grey);
	width: 100%;
	transition: all .3s ease;
}

.upload-container {
    position: relative;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.upload-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    text-align: center;
    color: #333;
}

.upload-box:hover {
    background-color: #f1f1f1;
}

.upload-icon i {
    font-size: 24px;
    color: #333;
}

.upload-icon p {
    margin: 5px 0;
    font-size: 14px;
}

.file-size-note {
    font-size: 12px;
    color: #888;
}

/* Styles for the image preview */
.upload-preview {
    width: 100%;
    max-width: 600px; /* Adjust the size as needed */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image scales nicely within the container */
    border-radius: 10px; /* Matches the rounded corners of the upload box */
}

/* Apply the same styles to the select dropdown */
.input-group select {
    padding: 12px 40px 12px 20px;
    outline: none;
    border-radius: 6px;
    border: 1px solid var(--dark-grey);
    width: 100%;
    transition: all .3s ease;
    appearance: none; /* Hide the default dropdown arrow */
    background: url('path_to_icon') no-repeat right 20px center; /* Custom icon */
    background-color: var(--grey); /* Same background as other input fields */
}

/* Focus and validation for select dropdown */
.input-group select:focus,
.input-group select:not(:placeholder-shown) {
    border-color: var(--blue);
    background: var(--grey);
}

.input-group select:focus:valid {
    box-shadow: 0 0 0 4px var(--light-green);
}

.input-group select:valid:not(:placeholder-shown) {
    border-color: var(--green);
}

.input-group select:invalid:not(:placeholder-shown) {
    border-color: var(--red);
}

.input-group select:focus:invalid {
    box-shadow: 0 0 0 4px var(--light-red);
}

/* Dropdown icon position */
.input-group select:focus + i,
.input-group select:not(:placeholder-shown) + i {
    color: var(--blue);
}

/* Optional: To customize the dropdown arrow */
.input-group select {
    -webkit-appearance: none; /* For Safari and Chrome */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;         /* General */
}

/* Validation */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
	border-color: var(--blue);
	background: var(--grey);
}

.input-group input:focus + i,
.input-group input:not(:placeholder-shown) + i {
	color: var(--blue);
}
.input-group input:focus:valid {
	box-shadow: 0 0 0 4px var(--light-green);
}
.input-group input:valid:not(:placeholder-shown) {
	border-color: var(--green);
}
.input-group input:valid:not(:placeholder-shown) + i {
	color: var(--green);
}
.input-group input:invalid:not(:placeholder-shown) {
	border-color: var(--red);
}
.input-group input:invalid:not(:placeholder-shown) + i {
	color: var(--red);
}
.input-group input:focus:invalid {
	box-shadow: 0 0 0 4px var(--light-red);
}
.input-group input:focus,
.input-group input:focus:placeholder-shown {
	box-shadow: 0 0 0 4px var(--bs);
}
/* Validation */

.input-group i {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 20px;
	color: var(--text);
	pointer-events: none;
	transition: all .3s ease;
}
.form-group .help-text {
	font-size: 12px;
	color: var(--text);
}
/* Style for both Edit and Delete buttons */
.admin-action-btn {
    display: inline-block;
    padding: 6px 12px; /* Smaller padding */
    font-size: 12px; /* Smaller font size */
    color: #fff; /* Text color */
    background-color: #007bff; /* Edit button color */
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    width: 70px; /* Smaller width */
    text-decoration: none; /* For <a> button */
    box-sizing: border-box; /* Include padding and border in width and height */
    height: 32px; /* Smaller height */
    line-height: 20px; /* Ensures vertical centering */
}

/* Hover effect */
.admin-action-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Optional: Specific colors for Edit and Delete */
.btn-edit {
    background-color: #007bff; /* Blue for Edit */
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    color: #fff;
    background-color: #dc3545; /* Red for Delete */
    border: none;
    border-radius: 4px; /* Match admin-action-btn */
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all .3s ease;
    height: 36px;
    min-width: 90px;
    gap: 6px;
}

/* Hover effect for each */
.btn-edit:hover {
    background-color: #0056b3;
}

.btn-delete:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-delete i {
    font-size: 14px;
}

.btn-delete span {
    font-size: 12px;
    font-weight: 500;
}

/* Style for the Print button */
.btn-print {
    display: inline-block;
    padding: 10px 20px; /* Adjust padding as needed */
    font-size: 14px; /* Same font size as other buttons */
    color: #fff; /* Text color */
    background-color: #28a745; /* Green color for Print */
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    width: 100px; /* Fixed width for consistency */
    text-decoration: none; /* Remove underline for <a> elements */
    box-sizing: border-box; /* Include padding and border in width and height */
    height: 40px; /* Fixed height for consistency */
    line-height: 20px; /* Ensures vertical centering */
}


.btn-submit {
	margin-top: 20px;
	padding: 10px 0;
	display: block;
	width: 100%;
	color: #fff;
	border-radius: 4px; /* Match admin-action-btn */
	cursor: pointer;
	transition: all .3s ease;
	border: none;
	font-weight: 500;
	background: #800000;
	margin-bottom: 20px;
}
.btn-submit:hover {
	background: #b22222;;
}

.btn-cancel {
	margin-top: 10px;
	padding: 10px 0;
	display: block;
	width: 100%;
	color: #fff;
	border-radius: 4px; /* Match admin-action-btn */
	cursor: pointer;
	transition: all .3s ease;
	border: none;
	font-weight: 500;
	background: #6c757d;
	margin-bottom: 20px;
}

.btn-cancel:hover {
	background: #5a6268;
}

/* CSS for Accept button */
.btn-accept {
    margin-top: 20px;
    padding: 10px 0;
    display: inline-block;
    width: 48%;
    color: #fff;
    border-radius: 4px; /* Match admin-action-btn */
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    font-weight: 500;
    background: #4CAF50; /* Green background */
    margin-right: 2%; /* Space between buttons */
}
.btn-accept:hover {
    background: #45a049; /* Darker green on hover */
}

/* CSS for Reject button */
.btn-reject {
    margin-top: 20px;
    padding: 10px 0;
    display: inline-block;
    width: 48%;
    color: #fff;
    border-radius: 4px; /* Match admin-action-btn */
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    font-weight: 500;
    background: #f44336; /* Red background */
}
.btn-reject:hover {
    background: #d32f2f; /* Darker red on hover */
}

/*eqp list*/
.quantity-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
	width:100%;
	position: relative;
}

.quantity-wrapper select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 10px;
}

.quantity-wrapper input[type="number"],
.quantity-wrapper select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    appearance: none;
}

#itemcategory {
    min-height: 40px;
    max-height: 120px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #bbb;
    padding: 8px;
    font-size: 1rem;
    background: #fafaff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    overflow-y: auto;
}

#itemcategory:focus {
    border-color: #6c63ff;
    outline: none;
}

#itemcategory option {
    padding: 6px 10px;
}



/* MAIN */
/* CONTENT */









@media screen and (max-width: 768px) {
	#sidebar {
		width: 200px;
	}

	#content {
		width: calc(100% - 60px);
		left: 200px;
	}

	#content nav .nav-link {
		display: none;
	}
	
	#content nav .bx.bx-menu {
		display: block !important;
		font-size: 24px;
	}
}






@media screen and (max-width: 576px) {
	#content nav .bx.bx-menu {
		display: block !important;
		font-size: 24px;
	}
	
	#content nav form .form-input input {
		display: none;
	}

	#content nav form .form-input button {
		width: auto;
		height: auto;
		background: transparent;
		border-radius: none;
		color: var(--dark);
	}

	#content nav form.show .form-input input {
		display: block;
		width: 100%;
	}
	#content nav form.show .form-input button {
		width: 36px;
		height: 100%;
		border-radius: 0 36px 36px 0;
		color: var(--light);
		background: var(--red);
	}

	#content nav form.show ~ .notification,
	#content nav form.show ~ .profile {
		display: none;
	}

	#content main .box-info {
		grid-template-columns: 1fr;
	}

	#content main .table-data .head {
		min-width: 420px;
	}
	#content main .table-data .order table {
		min-width: 420px;
	}
	#content main .table-data .todo .todo-list {
		min-width: 420px;
	}
    
}

/* Modal overlay */
#addCategoryModal.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    font-family: var(--lato);
}

/* Show modal when display is block */
#addCategoryModal.modal[style*="display: block"] {
    display: flex !important;
}

/* View Item Modal */
#viewItemModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    font-family: var(--lato);
}

/* Show view modal when display is block */
#viewItemModal[style*="display: block"] {
    display: flex !important;
}

/* Categories Modal */
#categoriesModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    font-family: var(--lato);
}

/* Show categories modal when display is block */
#categoriesModal[style*="display: block"] {
    display: flex !important;
}

/* Modal content */
#addCategoryModal .modal-content {
    background: #fff;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    margin: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: modalPop 0.2s;
}

@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#addCategoryModal h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

#addCategoryModal input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

#addCategoryModal button[type="submit"] {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#addCategoryModal button[type="submit"]:hover {
    background: #554ee2;
}

#closeCategoryModal {
    position: absolute;
    top: 10px; right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #888;
    transition: color 0.2s;
}

#closeCategoryModal:hover {
    color: #333;
}

#addCategoryMsg {
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
}

/* Status Badge Styles */
.status-badge {
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Deactivate/Reactivate Button Styles */
.btn-deactivate {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    width: 70px;
    height: 32px;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-deactivate:hover {
    background-color: #c82333;
}

.btn-reactivate {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    width: 70px;
    height: 32px;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reactivate:hover {
    background-color: #218838;
}

/* Admin table action buttons spacing */
.admin-table {
    display: flex;
    gap: 4px;
    flex-direction: row;
    align-items: center;
}

.admin-table .admin-action-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    height: 32px;
    min-width: 70px;
}

/* User Management Table Specific Styles */
.user-management-table {
    width: 100%;
    border-collapse: collapse;
}

.user-management-table th,
.user-management-table td {
    padding: 6px 4px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

/* Specific column widths for user management */
.user-management-table th:nth-child(1),
.user-management-table td:nth-child(1) {
    width: 30%;
}

.user-management-table th:nth-child(2),
.user-management-table td:nth-child(2) {
    width: 25%;
}

.user-management-table th:nth-child(3),
.user-management-table td:nth-child(3) {
    width: 20%;
}

.user-management-table th:nth-child(4),
.user-management-table td:nth-child(4) {
    width: 25%;
}

/* Standardized Table Styles for All Pages */
#content main .table-data .order table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

/* Bottom scroll bar for all table containers */
#content main .table-data .order {
    overflow-x: auto;
    max-width: 100%;
}

#content main .table-data .order::-webkit-scrollbar {
    height: 8px;
}

#content main .table-data .order::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#content main .table-data .order::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#content main .table-data .order::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#content main .table-data .order table th,
#content main .table-data .order table td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

/* Standardized font sizes for all containers */
#content main .table-data .order .head h3 {
    font-size: 20px;
}

#content main .table-data .todo .head h3 {
    font-size: 20px;
}

#content main .table-data .order table th {
    font-size: 14px;
    font-weight: 600;
}

#content main .table-data .order table td {
    font-size: 14px;
}

/* Equipment grid standardization */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.equipment-card h4 {
    font-size: 18px;
    margin: 10px 0 5px 0;
}

.equipment-card p {
    font-size: 14px;
    margin: 5px 0;
}

/* Form standardization */
.form-group label {
    font-size: 15px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-size: 14px;
}

/* Button text standardization */
.btn-restore,
.btn-delete,
.btn-view-card,
.btn-edit-card,
.btn-delete-card {
    font-size: 13px;
}

/* Delete button styling for borrowed items */
.btn-delete-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-delete-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.btn-delete-item i {
    font-size: 16px;
}

/* Borrowed items table styling improvements */
.borrowed-items-table td {
    padding: 8px 12px;
    vertical-align: middle;
}

.borrowed-items-table input[type="number"],
.borrowed-items-table select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
}

.borrowed-items-table input[type="number"]:focus,

/* Notification Styles */
#content nav .notification {
    position: relative;
    cursor: pointer;
}

#content nav .notification .num {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: var(--light);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--grey);
    background: var(--light);
}

.notification-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    background: var(--blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mark-all-read:hover {
    background: #6a1b9a;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey);
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.notification-item:hover {
    background: var(--grey);
}

.notification-item.unread {
    background: #f0f8ff;
}

.notification-item.unread:hover {
    background: #e6f3ff;
}

.notification-content h5 {
    margin: 0 0 4px 0;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
}

.notification-content p {
    margin: 0 0 4px 0;
    color: var(--dark-grey);
    font-size: 13px;
    line-height: 1.4;
}

.notification-content small {
    color: var(--dark-grey);
    font-size: 11px;
}

.unread-indicator {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: var(--dark-grey);
    font-size: 14px;
}

/* Dark mode support */
body.dark .notification-dropdown {
    background: var(--light);
    border: 1px solid var(--grey);
}

body.dark .notification-item.unread {
    background: #2a1b3d;
}

body.dark .notification-item.unread:hover {
    background: #3d2b5a;
}
.borrowed-items-table select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(133, 20, 36, 0.1);
}

/* Dropdown Menu Styles */
#sidebar .side-menu .dropdown {
	position: relative;
}

#sidebar .side-menu .dropdown .dropdown-toggle {
	position: relative;
}

#sidebar .side-menu .dropdown .dropdown-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
	font-size: 12px;
}

#sidebar .side-menu .dropdown.active .dropdown-arrow {
	transform: translateY(-50%) rotate(180deg);
}

#sidebar .side-menu .dropdown-menu {
	position: relative;
	background: var(--light);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
	padding: 0;
	margin: 0;
	display: block;
}

#sidebar .side-menu .dropdown-menu.show {
	opacity: 1;
	visibility: visible;
	max-height: 300px;
	padding: 8px 0;
	margin: 4px 0;
}

#sidebar .side-menu .dropdown-menu li {
	height: auto;
	margin: 0;
	border-radius: 0;
	padding: 0;
	list-style: none;
}

#sidebar .side-menu .dropdown-menu li a {
	height: 40px;
	padding: 0 16px;
	border-radius: 0;
	font-size: 14px;
	color: var(--dark);
	display: flex;
	align-items: center;
	transition: background-color 0.2s ease;
	text-decoration: none;
}

#sidebar .side-menu .dropdown-menu li a:hover {
	background: var(--grey);
	color: var(--blue);
}

#sidebar .side-menu .dropdown-menu li a i {
	min-width: 20px;
	margin-right: 8px;
	font-size: 16px;
}

/* Hide dropdown arrow when sidebar is collapsed */
#sidebar.hide .side-menu .dropdown .dropdown-arrow {
	display: none;
}



/* Dark mode support */
body.dark #sidebar .side-menu .dropdown-menu {
	background: var(--dark);
	border: 1px solid var(--grey);
}

body.dark #sidebar .side-menu .dropdown-menu li a {
	color: var(--light);
}

body.dark #sidebar .side-menu .dropdown-menu li a:hover {
	background: var(--grey);
	color: var(--blue);
}

/* Debug: Force show dropdown for testing */
#sidebar .side-menu .dropdown-menu {
	/* Uncomment the line below to force show dropdown for debugging */
	/* opacity: 1 !important; visibility: visible !important; transform: translateX(0) !important; */
}

/* Audit Modal Styles - More specific to override existing styles */
#add-audit-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#add-audit-modal .modal-content {
    background-color: #fefefe !important;
    margin: 5% auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    width: 90% !important;
    max-width: 500px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
}

#add-audit-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#add-audit-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#add-audit-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#add-audit-modal .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#add-audit-modal .modal-body {
    padding: 25px;
}

#add-audit-modal .form-group {
    margin-bottom: 20px;
}

#add-audit-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#add-audit-modal .form-group input,
#add-audit-modal .form-group select,
#add-audit-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

#add-audit-modal .form-group input:focus,
#add-audit-modal .form-group select:focus,
#add-audit-modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#add-audit-modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#add-audit-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

#add-audit-modal .btn-primary,
#add-audit-modal .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#add-audit-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#add-audit-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#add-audit-modal .btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e1e5e9;
}

#add-audit-modal .btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive design for audit modal */
@media (max-width: 768px) {
    #add-audit-modal .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #add-audit-modal .form-actions {
        flex-direction: column;
    }
    
    #add-audit-modal .btn-primary,
    #add-audit-modal .btn-secondary {
        width: 100%;
    }
}

/* ===== EQUIPMENT AUDIT SYSTEM CSS ===== */

/* Audit section container */
.audit-section {
    margin-top: 15px;
}

/* Add audit entry button */
.btn-add-audit {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-add-audit:hover {
    background: #218838;
}

.btn-add-audit i {
    margin-right: 5px;
}

/* Audit entry container */
.audit-entry {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Audit entry header */
.audit-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.audit-entry-title {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.btn-remove-audit {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.btn-remove-audit:hover {
    background: #c82333;
}

.btn-remove-audit i {
    margin-right: 3px;
}

/* Audit entry form grid */
.audit-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
}

/* Audit calculations grid */
.audit-calculations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* Calculation fields */
.calculation-field {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600;
}

.calculation-note {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
    font-style: italic;
}

.audit-field {
    display: flex;
    flex-direction: column;
}

.audit-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
}

.audit-field input,
.audit-field select {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.5;
    vertical-align: middle;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    display: block;
    margin: 0;
}

/* Specific fixes for number input alignment */
.audit-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
    padding: 8px 12px;
    height: 38px;
    line-height: 1.5;
    vertical-align: middle;
}

/* Remove spinner arrows from number input */
.audit-field input[type="number"]::-webkit-outer-spin-button,
.audit-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.audit-field input:focus,
.audit-field select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Audit entries table */
#auditEntriesTable {
    margin-top: 20px;
    display: none;
}

.audit-table-title {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.audit-table thead {
    background: #f8f9fa;
}

.audit-table th {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.audit-table th:nth-child(2),
.audit-table th:nth-child(3),
.audit-table th:nth-child(4),
.audit-table th:nth-child(5) {
    text-align: center;
}

.audit-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.audit-table td:nth-child(2),
.audit-table td:nth-child(3),
.audit-table td:nth-child(4),
.audit-table td:nth-child(5) {
    text-align: center;
}

.audit-table tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-delete-audit {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.btn-delete-audit:hover {
    background: #c82333;
}

/* Responsive design for audit entries */
@media (max-width: 768px) {
    .audit-entry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .audit-entry {
        padding: 12px;
    }
    
    .audit-table {
        font-size: 12px;
    }
    
    .audit-table th,
    .audit-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .audit-entry-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .audit-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Contact Number Validation Styling */
.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: block;
}

.input-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group input.valid {
    border-color: #28a745;
    color: #28a745;
}

.input-group input.invalid {
    border-color: #dc3545;
    color: #dc3545;
}

/* Status Validation Styling */
.input-group select option:disabled {
    color: #6c757d;
    background-color: #f8f9fa;
    font-style: italic;
}

.input-group select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Textarea Styling */
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Borrowing Policies Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reminders Modal Specific Styling */
#remindersModal .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    margin: auto;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

#remindersModal .modal-header {
    text-align: center;
    margin-bottom: 30px;
}

#remindersModal .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

#remindersModal .modal-header p {
    color: #666;
    margin-top: 10px;
}

#remindersModal .reminder-sections {
    display: grid;
    gap: 25px;
}

#remindersModal .reminder-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

#remindersModal .reminder-section h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

#remindersModal .reminder-section ul {
    margin: 0;
    padding-left: 20px;
    color: #333;
}

#remindersModal .reminder-section li {
    margin-bottom: 8px;
    list-style: none;
    position: relative;
    padding-left: 20px;
}

#remindersModal .reminder-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

#remindersModal .reminder-section strong {
    color: #333;
}

#remindersModal .close-reminders {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.3s ease;
}

#remindersModal .close-reminders:hover {
    color: #333;
}

#remindersModal .modal-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

#remindersModal .btn-understand {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#remindersModal .btn-understand:hover {
    background: #0056b3;
}

/* Color-coded sections */
#remindersModal .section-before {
    border-left: 4px solid #007bff;
}

#remindersModal .section-before h3 {
    color: #007bff;
}

#remindersModal .section-during {
    border-left: 4px solid #28a745;
}

#remindersModal .section-during h3 {
    color: #28a745;
}

#remindersModal .section-returning {
    border-left: 4px solid #ffc107;
}

#remindersModal .section-returning h3 {
    color: #ffc107;
}

#remindersModal .section-penalties {
    border-left: 4px solid #dc3545;
}

#remindersModal .section-penalties h3 {
    color: #dc3545;
}

#remindersModal .section-other {
    border-left: 4px solid #6c757d;
}

#remindersModal .section-other h3 {
    color: #6c757d;
}

/* Responsive design for modal */
@media (max-width: 768px) {
    #remindersModal .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    #remindersModal h2 {
        font-size: 24px;
    }
    
    #remindersModal h3 {
        font-size: 18px;
    }
    
    #remindersModal .reminder-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #remindersModal .modal-content {
        width: 98%;
        padding: 15px;
        margin: 10px auto;
    }
    
    #remindersModal h2 {
        font-size: 20px;
    }
    
    #remindersModal .reminder-section {
        padding: 12px;
    }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--light);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    margin-top: 8px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    display: none;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--light);
}

.profile-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e1e5e9;
}

.profile-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--poppins);
}

.profile-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: var(--dark-grey);
    font-family: var(--lato);
    text-transform: capitalize;
}

.profile-actions {
    padding: 10px 0;
}

.profile-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-family: var(--lato);
}

.profile-action:hover {
    background-color: #f8f9fa;
    color: var(--blue);
}

.profile-action i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.profile-action span {
    font-size: 14px;
    font-weight: 500;
}

/* Dark mode support */
body.dark .profile-dropdown {
    background: var(--dark);
    border-color: #2a2a2a;
}

body.dark .profile-dropdown::before {
    border-bottom-color: var(--dark);
}

body.dark .profile-header {
    border-bottom-color: #2a2a2a;
}

body.dark .profile-info h4 {
    color: var(--light);
}

body.dark .profile-info p {
    color: var(--dark-grey);
}

body.dark .profile-action:hover {
    background-color: #2a2a2a;
    color: var(--light-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-dropdown {
        width: 260px;
        right: -10px;
    }
    
    .profile-header {
        padding: 15px;
    }
    
    .profile-action {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown {
        width: 240px;
        right: -20px;
    }
    
    .profile-header {
        padding: 12px;
    }
    
    .profile-header img {
        width: 40px;
        height: 40px;
    }
    
    .profile-info h4 {
        font-size: 14px;
    }
    
    .profile-info p {
        font-size: 12px;
    }
}

/* Edit Profile Modal Styles - Consistent with existing design */
#editProfileModal {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#editProfileModal .modal-content {
    max-width: 500px;
    margin: 20px auto;
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #e1e5e9;
}

#editProfileModal .modal-header {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    margin: -1px -1px 0 -1px;
}

#editProfileModal .modal-header h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--poppins);
}

#editProfileModal .modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    font-family: var(--lato);
}

#editProfileModal .close-reminders {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#editProfileModal .close-reminders:hover {
    opacity: 1;
}

#editProfileModal form {
    padding: 25px;
}

#editProfileModal .form-group {
    margin-bottom: 25px;
}

#editProfileModal .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: var(--poppins);
}

#editProfileModal .input-group {
    position: relative;
}

#editProfileModal .input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

#editProfileModal .input-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#editProfileModal .input-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
}

#editProfileModal .input-group input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

#editProfileModal .input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
}

#editProfileModal .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    font-family: var(--lato);
}

#editProfileModal .profile-picture-preview {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
}

#editProfileModal .profile-picture-preview img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#editProfileModal .modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f4;
    align-items: center;
}

#editProfileModal .btn-secondary {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--lato);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#editProfileModal .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

#editProfileModal .btn-submit {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--lato);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#editProfileModal .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

#editProfileModal .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dark mode support for edit profile modal */
body.dark #editProfileModal .modal-content {
    background: var(--dark) !important;
    border-color: #2a2a2a;
}

body.dark #editProfileModal .form-group label {
    color: var(--light);
}

body.dark #editProfileModal .input-group input[type="text"] {
    background: var(--dark);
    border-color: #2a2a2a;
    color: var(--light);
}

body.dark #editProfileModal .input-group input[type="file"] {
    background: #2a2a2a;
    border-color: #2a2a2a;
    color: var(--light);
}

body.dark #editProfileModal .profile-picture-preview {
    background: #2a2a2a;
    border-color: #2a2a2a;
}

body.dark #editProfileModal .help-text {
    color: #aaa;
}

body.dark #editProfileModal .modal-footer {
    border-top-color: #2a2a2a;
}

/* Responsive design for edit profile modal */
@media (max-width: 768px) {
    #editProfileModal .modal-content {
        margin: 10px;
        max-width: none;
    }
    
    #editProfileModal form {
        padding: 20px;
    }
    
    #editProfileModal .modal-footer {
        flex-direction: column;
    }
    
    #editProfileModal .btn-secondary,
    #editProfileModal .btn-submit {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Auto-Fill Form Styles */
.btn-auto-fill {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.btn-auto-fill:hover {
    background: #218838;
}

.btn-auto-fill:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.input-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.input-group input[readonly]:focus {
    background-color: #fff;
    color: #495057;
}

.borrowed-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: box-shadow 0.3s ease;
}

.borrowed-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.borrowed-items-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.borrowed-items-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
}

