/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #4CAF50, #8B4513);
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 350px;
    padding: 30px;
    text-align: center;
}

.logo img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #45a049;
}

.signup-link {
    font-size: 14px;
    color: #555;
    margin-top: 15px;
}

.signup-link a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}

.error {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #8B4513; /* Brown */
    color: white;
    padding: 20px;
    position: fixed;
    height: 100%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
    position: relative; /* Required for submenu positioning */
}

.sidebar ul li a {
    color: white;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Submenu Styles */
.sidebar ul .submenu {
    margin-left: 20px; /* Indent submenu */
    display: none; /* Hide submenu by default */
    background: rgba(0, 0, 0, 0.1); /* Slightly darker background for submenu */
    border-left: 2px solid rgba(255, 255, 255, 0.1); /* Add a left border */
    border-radius: 5px;
    padding: 5px 0; /* Add some padding */
}

.sidebar ul .submenu li {
    margin: 8px 0; /* Smaller margin for submenu items */
}

.sidebar ul .submenu li a {
    font-size: 14px; /* Smaller font for submenu items */
    padding: 8px 15px; /* Adjust padding */
    color: rgba(255, 255, 255, 0.8); /* Slightly lighter color for submenu items */
}

.sidebar ul .submenu li a:hover {
    background: rgba(255, 255, 255, 0.05); /* Subtle hover effect */
}

/* Show submenu when parent is hovered */
.sidebar ul li:hover .submenu {
    display: block;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    background: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #4CAF50; /* Green */
    color: white;
}

/* Buttons */
button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

button.okay-btn {
    background: #4CAF50;
    color: white;
}

button.okay-btn:hover {
    background: #45a049;
}

button.reject-btn {
    background: #ff4d4d;
    color: white;
}

button.reject-btn:hover {
    background: #e60000;
}

button.add-btn {
    background: #4CAF50;
    color: white;
    margin-bottom: 20px;
}

button.add-btn:hover {
    background: #45a049;
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto;
}

form label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
    outline: none;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

form button {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .login-box {
        width: 100%;
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .image-scroller {
        max-width: 200%; /* Allow the scroller to take full width on small screens */
    }

    .image-scroller img {
        height: 50px; /* Reduce image height on smaller screens */
    }
}
.slick-prev:before,
.slick-next:before {
    color: #4CAF50; /* Green color for navigation arrows */
}

.slick-dots li button:before {
    color: #4CAF50; /* Green color for dot indicators */
}

.slick-dots li.slick-active button:before {
    color: #8B4513; /* Brown color for active dot indicator */
}
/* Elegant topbar.css */

.topbar {
    background-color: #fff;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

/* Search section */
.top-search {
    flex: 1;
    max-width: 400px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    background-color: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* Top menu section */
.top-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Notifications */
.notifications-dropdown {
    position: relative;
}

.notifications-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.notifications-toggle:hover {
    background-color: #f1f5f9;
    color: #4CAF50;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 600;
    border: 2px solid white;
}

.notifications-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: -100px;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notifications-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 108px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.notifications-menu.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    color: #334155;
    font-weight: 600;
}

.mark-read {
    font-size: 12px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.mark-read:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s;
    background-color: #f8fafc;
    gap: 14px;
}

.notification-icon {
    color: #4CAF50;
    margin-top: 2px;
}

.notification-item.read {
    background-color: #fff;
}

.notification-item.read .notification-icon {
    color: #94a3b8;
}

.notification-item:hover {
    background-color: #f0f9f0;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 5px;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    color: #94a3b8;
    font-size: 12px;
}

.no-notifications {
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

.notifications-footer {
    padding: 14px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.notifications-footer a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    padding-left: 12px;
    border-radius: 30px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.user-toggle:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.avatar-wrapper.large {
    width: 60px;
    height: 60px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.user-role {
    font-size: 12px;
    color: #64748b;
}

.user-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.user-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #334155;
}

.user-email {
    font-size: 13px;
    color: #64748b;
}

.user-menu-content {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
}

.user-menu-item svg {
    color: #64748b;
}

.user-menu-item:hover {
    background-color: #f0f9f0;
}

.user-menu-item span {
    font-size: 14px;
}

.menu-divider {
    height: 1px;
    background-color: #f1f5f9;
    margin: 8px 0;
}

.logout {
    color: #ef4444;
}

.logout svg {
    color: #ef4444;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-search {
        max-width: 220px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-toggle {
        padding: 4px;
    }
    
    .notifications-menu {
        width: 320px;
        right: -120px;
    }
    
    .notifications-menu::before {
        right: 128px;
    }
}

@media (max-width: 480px) {
    .topbar {
        height: 60px;
    }
    
    .topbar-container {
        padding: 0 15px;
    }
    
    .top-search {
        max-width: 160px;
    }
    
    .search-input {
        padding: 8px 8px 8px 36px;
        font-size: 13px;
    }
    
    .top-menu {
        gap: 16px;
    }
    
    .notifications-menu,
    .user-menu {
        width: 280px;
        right: -10px;
    }
    
    .notifications-menu::before {
        right: 18px;
    }
}