/* Lost & Found Styles */
.lost-found-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.lost-found-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 32px rgba(8, 31, 92, 0.15);
}

.lost-found-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lost-found-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334EAC;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.action-btn.primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
}

.action-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

/* Form Section */
.form-section {
    margin-bottom: 3rem;
}

.form-section.hidden {
    display: none;
}

.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Add padding to the form content */
.form-card form {
    padding: 1.5rem 2rem;
}

.form-header {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #334EAC;
    box-shadow: 0 0 0 3px rgba(51, 78, 172, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 78, 172, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Listings Section */
.listings-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.listings-header {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.listings-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Filter Buttons */
.filter-buttons {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #334EAC;
    color: #334EAC;
}

.filter-btn.active {
    background: #334EAC;
    border-color: #334EAC;
    color: white;
}

/* Listings Container */
.listings-container {
    padding: 2rem;
    min-height: 400px;
}

.listings-grid {
    display: grid;
    gap: 1rem;
}

.listing-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.listing-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334EAC;
}

.listing-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.listing-badge.finder {
    background: #d4edda;
    color: #155724;
}

.listing-badge.owner {
    background: #f8d7da;
    color: #721c24;
}

.listing-badge.resolved {
    background: #cce5ff;
    color: #004085;
}

/* Resize listing images to fit inside a small box */
.listing-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #f1f5f9;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.listing-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.listing-detail {
    display: flex;
    flex-direction: column;
}

.listing-detail-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.listing-detail-value {
    font-weight: 600;
    color: #333;
}

.listing-description {
    color: #334155;
    margin: 1rem 0;
    line-height: 1.5;
}

.listing-contact {
    font-size: 0.95rem;
    color: #0f172a;
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Loading and Empty States */
.loading-spinner,
.no-listings {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #334EAC;
}

.no-listings i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lost-found-container {
        padding: 1rem;
    }

    .lost-found-header h1 {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .listings-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .listing-header {
        flex-direction: column;
        gap: 1rem;
    }

    .listing-details {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tighter padding on small screens */
    .form-card form {
        padding: 1rem;
    }

    .listing-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}