/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* ===== LOGIN/SIGNUP PANELS ===== */
.left-panel {
    flex: 1;
    background-image: url('resources/login-gif.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.right-panel {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.logo-container {
    text-align: center;
    animation: fadeInLeft 0.8s ease-out;
}

.logo {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 16px rgba(203, 127, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.welcome-text {
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
}

.welcome-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #cb7f00, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== FORM CONTAINERS ===== */
.login-container, .signup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.login-container::before, .signup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cb7f00, #ffb347, #cb7f00);
    border-radius: 20px 20px 0 0;
}

.login-container h1, .signup-container h1 {
    margin-bottom: 8px;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.login-container .subtitle, .signup-container .subtitle {
    margin-bottom: 30px;
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-container label, .signup-container label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-container input, .signup-container input, .signup-container select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 2px solid #e1e1e1;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.login-container input:focus, .signup-container input:focus, .signup-container select:focus {
    outline: none;
    border-color: #cb7f00;
    box-shadow: 0 0 0 3px rgba(203, 127, 0, 0.1);
    transform: translateY(-1px);
}

.login-container input:hover, .signup-container input:hover, .signup-container select:hover {
    border-color: #cb7f00;
}

/* ===== BUTTONS ===== */
.login-button, .signup-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #cb7f00, #e89611);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-button:hover, .signup-button:hover {
    background: linear-gradient(45deg, #bd7800, #d48806);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(203, 127, 0, 0.3);
}

.login-button:active, .signup-button:active {
    transform: translateY(0);
}

/* ===== LINKS ===== */
.register-link, .login-link {
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

.register-link a, .login-link a {
    color: #cb7f00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover, .login-link a:hover {
    color: #bd7800;
    text-decoration: underline;
}

/* ===== MESSAGES ===== */
.error-message {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.success-message {
    color: #27ae60;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.success-message a {
    color: #27ae60;
    font-weight: bold;
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ===== DASHBOARD LAYOUT ===== */
.main-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    margin-left: 280px; /* offset for fixed sidebar */
}

.side-bar {
    width: 280px;
    background: linear-gradient(135deg, #232323 0%, #393939 100%);
    padding: 30px 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.13);
    border-right: 1px solid rgba(203, 127, 0, 0.10);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.side-bar a {
    display: block;
    padding: 15px 20px;
    color: #eee;
    text-decoration: none;
    margin-bottom: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.side-bar a img {
    height: 22px;
    width: 22px;
    vertical-align: middle;
    margin-right: 16px;
    object-fit: contain;
}

.side-bar a:hover,
.side-bar a.active {
    background: linear-gradient(45deg, #cb7f00, #e89611);
    color: white;
    box-shadow: 0 4px 15px rgba(203, 127, 0, 0.2);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
}

/* Admin pages need relative path adjustment */
.admin-content {
    flex: 1;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%), url('../resources/founditbg.png');
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
}

.content-header {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    background: linear-gradient(135deg, #cb7f00 0%, #ffb347 50%, #e89611 100%);
    padding: 12px 30px;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(203, 127, 0, 0.2);
    text-align: center;
}

/* ===== REPORT LOST ITEM PAGE ===== */
.report-container {
    background: rgba(255, 227, 142, 0.95);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.report-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.report-header i {
    width: 50px;
    height: 40px;
    color: #cb7f00;
    margin-right: 15px;
    font-size: 50px;
    display: inline-block;
    text-align: center;
}

.report-header h1 {
    font-size: 30px;
    color: #333;
    font-weight: 600;
}

.report-form-group {
    margin-bottom: 30px;
}

.report-form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #0a0a0a;
    font-weight: 500;
    font-size: 20px;
}

.report-form-group label i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #0a0a0a;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.report-form-group input,
.report-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.report-form-group input:focus,
.report-form-group textarea:focus {
    outline: none;
    border-color: #cb7f00;
    box-shadow: 0 0 0 3px rgba(203, 127, 0, 0.1);
    transform: translateY(-1px);
}

.report-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== IMAGE UPLOAD ===== */
.image-upload-section {
    position: relative;
    margin-bottom: 25px;
}

.image-upload-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #0a0a0a;
    font-weight: 500;
    font-size: 20px;
}

.image-upload-label i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #000000;
    font-size: 16px;
    display: inline-block;
    text-align: center;
}

.image-upload-area {
    border: 2px dashed #cb7f00;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-area:hover {
    background: #fef9f0;
    border-color: #bd7800;
}

.image-upload-area.has-image {
    border-style: solid;
    background: #f8f9fa;
}

.upload-button {
    background: #cb7f00;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.upload-button:hover {
    background: #bd7800;
}

.upload-text {
    color: #666;
    font-size: 0.9rem;
}

.image-preview {
    display: none;
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin: 10px auto;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #cb7f00, #e89611);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    background: linear-gradient(45deg, #bd7800, #d48806);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(203, 127, 0, 0.3);
}

#imageInput {
    display: none;
}

/* ===== USER PROFILE ===== */
.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 15px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 3px solid #cb7f00;
    outline: none;
}

.username {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
}

/* ===== NAV MENU ===== */
.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.nav-item i {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    color: currentColor;
    display: inline-block;
    text-align: center;
}

.nav-item.active {
    background: #cb7f00;
    color: white;
}

.logout-button {
    margin-top: auto;
    padding: 15px 20px;
    background: #cb7f00;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.logout-button:hover {
    background: #717171;
    transform: translateY(2px);
    transition: all 0.3s;
}

/* ===== DROPDOWN MENU ===== */
.user-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 15px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.13);
    padding: 24px 0 0 0; /* Remove bottom padding to close gap */
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    border: none;
    outline: none;
    transition: box-shadow 0.18s, background 0.18s;
}

.user-menu img[alt="user icon"] {
    background: #232323;
    border: 3px solid #cb7f00;
    margin-bottom: 10px;
    margin-top: 2px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(203,127,0,0.18), 0 0 16px 2px #cb7f00;
}

.username {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0; /* Remove bottom margin */
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.5px;
}

.user-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #232323;
    border: none;
    color: #fff;
    font-size: 1.13em;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 0 10px 0;
    border-radius: 0 0 12px 12px;
    transition: background 0.2s, color 0.2s, box-shadow 0.18s;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    outline: none;
    margin-top: 8px;
    margin-bottom: 0;
}

.user-button:hover, .user-button:focus {
    background: #393939;
    color: #ffb347;
    
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #232323;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-radius: 12px;
    min-width: 140px;
    z-index: 100;
    border: none;
    outline: none;
    padding: 4px 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1em;
}

.dropdown-menu a:hover {
    background: #393939;
    color: #ffb347;
}

/* ===== MESSAGES ===== */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success {
    background: #d4edda;
    color: #002670;
    border: 1px solid #b6fffa;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== HEADER ===== */
header {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    position: sticky;
    top: 0;
    min-height: 100px;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cb7f00, #ffb347, #cb7f00);
}

header img {
    height: 105px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(203, 127, 0, 0.3));
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        flex: none;
        padding: 30px 20px;
    }
    
    .left-panel {
        min-height: 40vh;
    }
    
    .right-panel {
        min-height: 60vh;
    }
    
    .login-container, .signup-container {
        padding: 30px 20px;
        margin: 0 10px;
        max-width: none;
    }
    
    .logo {
        width: 70%;
        max-width: 250px;
        min-width: 120px;
        margin-bottom: 5px;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem;
    }
    
    .welcome-text p {
        font-size: 0.9rem;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .side-bar {
        width: 100%;
        padding: 20px;
    }
    
    .side-bar a {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .content-header {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .user-menu {
        width: auto;
        justify-content: flex-end;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
    }
    
    /* Report page mobile styles */
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .report-container {
        padding: 20px;
    }
    
    .report-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== SIGNUP PAGE ===== */
.signup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: url('resources/signup-gif.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 40px;
}

/* Make sure the signup container matches login styling */
.signup-container {
    width: 100%;
    max-width: 450px;
}

/* Mobile responsiveness for signup */
@media (max-width: 768px) {
    .signup-content {
        padding: 20px;
    }
    
    .signup-container {
        padding: 30px 20px;
    }
}