/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.btn-nav {
    background: #667eea;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background: #5a67d8;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #5a67d8;
}
/* Navigation Styles */
.navbar {
    background-color: #2196F3;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.logo {
    color: white;
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 5px;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
    height: auto;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333 !important;
    height: auto;
    border-radius: 0;
    font-weight: normal;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

/* User Avatar */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding: 0 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(139, 107, 74, 0.4);
}

.user-name {
    color: white;
    font-weight: 500;
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    margin-left: 10px;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2px;
    }
    
    .nav-links a {
        padding: 8px 15px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    .nav-user {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        margin-top: 10px;
    }
}

/* Global Select & Option Theme Styling (ChangeWave Dark Theme) */
select,
.form-select,
.form-control select,
.filter-select {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid rgba(139, 107, 74, 0.3) !important;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23A67C52" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    cursor: pointer;
}

select:hover,
.form-select:hover,
.filter-select:hover {
    border-color: #A67C52 !important;
    background-color: #333333 !important;
}

select:focus,
.form-select:focus,
.filter-select:focus {
    outline: none !important;
    border-color: #A67C52 !important;
    background-color: rgba(139, 107, 74, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(139, 107, 74, 0.25) !important;
}

/* Ensure opened dropdown options are dark and readable across all browsers */
select option,
.form-select option,
.filter-select option,
option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 12px;
}

/* Location Feature Button & Status Styling */
.use-location-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e5e5;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.use-location-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.location-status {
    font-size: 12px;
    margin-left: 8px;
    font-weight: 400;
}

.location-status.text-info {
    color: #64b5f6 !important;
}

.location-status.text-success {
    color: #81c784 !important;
}

.location-status.text-warning {
    color: #ffb74d !important;
}

