/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #0d7c6e 0%, #2dd46a 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 1040;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar a {
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    z-index: 1050;
}

.btn-language {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-language:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-language:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    z-index: 1051;
    right: 0 !important;
    left: auto !important;
}

.language-dropdown-menu {
    transform: translate(0, 0) !important;
    inset: 0px 0px auto auto !important;
}

.language-switcher .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.language-switcher .dropdown-item.active {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    color: #11998e;
    font-weight: 600;
}

/* Enhanced Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1030;
}

.navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
}

.brand-logo {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link i {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: rgba(255, 255, 255, 1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-link.active i {
    color: rgba(255, 255, 255, 1);
}

.btn-report {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.3);
}

.btn-report:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #c92a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    transform: translateX(5px);
}

.dropdown-item i {
    font-size: 1.1rem;
    color: #6c757d !important;
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: #11998e !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 60px 0;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Category Cards */
.category-card {
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #11998e;
    background: #ffffff;
}

.category-icon {
    font-size: 3.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: #6c757d;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
    color: #11998e;
}

.category-card h5 {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    color: #212529;
}

.category-card:hover h5 {
    color: #212529;
}

.text-purple {
    color: #6f42c1;
}

/* Category Section Styling */
#categories {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#categories h2 {
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

#categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 2px;
}

.category-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Item Cards */
.item-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Clickable Card */
.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.clickable-card .card-title {
    color: #212529;
    transition: color 0.3s ease;
}

.clickable-card:hover .card-title {
    color: #11998e;
}

.clickable-card .btn {
    pointer-events: none;
}

.item-card img {
    height: 200px;
    object-fit: contain;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
}

.badge-lost {
    background-color: #dc3545;
}

.badge-found {
    background-color: #28a745;
}

/* Filter Section */
.filter-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Detail Page */
.detail-image {
    max-height: 500px;
    object-fit: contain;
    width: 100%;
    border-radius: 10px;
}

.contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 0.2rem rgba(17, 153, 142, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0e8074 0%, #2dd46a 100%);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
}

/* Image Preview */
.image-preview {
    max-width: 300px;
    max-height: 300px;
    margin-top: 10px;
    border-radius: 10px;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
}

/* Card Title Truncate */
.card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Navbar Gradient */
.navbar.bg-primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

/* Type Toggle Buttons */
.type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.type-toggle .btn {
    min-width: 150px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.type-toggle .btn-lost {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.type-toggle .btn-lost:hover,
.type-toggle .btn-lost.active {
    background: linear-gradient(135deg, #ee5a6f 0%, #c92a2a 100%);
    border-color: #c92a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 111, 0.4);
}

.type-toggle .btn-found {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.type-toggle .btn-found:hover,
.type-toggle .btn-found.active {
    background: linear-gradient(135deg, #37b24d 0%, #2b8a3e 100%);
    border-color: #2b8a3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 178, 77, 0.4);
}

/* Page Header Gradient */
.page-header-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Enhanced Icon Box */
.icon-box {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Contact Card Gradient */
.contact-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Category Badge Colors */
.category-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #11998e;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    margin-top: 80px;
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 2px;
}

.footer-text {
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #38ef7d;
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.75rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: #b0b0b0;
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.footer-contact i {
    color: #38ef7d;
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-bottom {
    background: #0d0d0d;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b0b0b0;
    margin: 5px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* Star Rating */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.rating-stars label i {
    transition: transform 0.2s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

.rating-stars input[type="radio"]:checked ~ label {
    color: #ffc107;
}

.rating-stars label:hover i,
.rating-stars input[type="radio"]:checked ~ label i {
    transform: scale(1.1);
}

/* Feedback Page Styles */
.page-header-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .brand-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 1rem;
        border-radius: 10px;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .btn-report {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .top-bar-left,
    .top-bar-right {
        font-size: 0.7rem;
        justify-content: center;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin: 5px 0;
    }
}
