/* DIU Lost and Found - External CSS File */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* DIU Theme Colors */
:root {
    --diu-green: #006837;
    --diu-light-green: #4CAF50;
    --diu-dark-green: #004d29;
    --diu-white: #ffffff;
    --diu-gray: #f5f5f5;
    --diu-text: #333333;
    --diu-border: #ddd;
}

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

/* Navigation */
.navbar {
    background-color: var(--diu-green);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: var(--diu-white);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--diu-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--diu-white);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--diu-white);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-create-post {
    background-color: var(--diu-light-green) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
}

.btn-create-post:hover {
    background-color: var(--diu-white) !important;
    color: var(--diu-green) !important;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--diu-white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--diu-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 4px 8px;
}

.dropdown-content a:hover {
    background-color: var(--diu-green);
    color: var(--diu-white);
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--diu-white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--diu-green) 0%, var(--diu-light-green) 100%);
    color: var(--diu-white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--diu-green);
    color: var(--diu-white);
}

.btn-primary:hover {
    background-color: var(--diu-dark-green);
}

.btn-secondary {
    background-color: var(--diu-light-green);
    color: var(--diu-white);
}

.btn-secondary:hover {
    background-color: var(--diu-green);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--diu-white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-red {
    background-color: #dc3545;
    color: var(--diu-white);
    padding: 12px 24px;
}

.btn-red:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.dropdown-content .btn-red {
    width: 100%;
    text-align: left;
    border-radius: 4px;
    margin: 4px 8px;
}

.logout-dropdown-btn:hover {
    background-color: #c82333 !important;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background-color: #28a745;
    color: var(--diu-white);
}

.btn-success:hover {
    background-color: #218838;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--diu-border);
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--diu-green);
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

.form-control[type="file"] {
    padding: 8px;
}

/* Cards */
.card {
    background-color: var(--diu-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid var(--diu-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-header h3 {
    color: var(--diu-green);
}

.card-body {
    padding: 15px 0;
}

.card-footer {
    border-top: 1px solid var(--diu-border);
    padding-top: 15px;
    margin-top: 15px;
}

/* Item Cards Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.item-card {
    background-color: var(--diu-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.item-card-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--diu-gray);
    transition: transform 0.3s ease;
}

.item-card:hover .item-image {
    transform: scale(1.05);
}

.item-image.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #999;
}

.item-image.no-image svg {
    margin-bottom: 8px;
    color: #ccc;
}

.item-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.item-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.item-type-badge.lost {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
}

.item-type-badge.found {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
}

.item-card-content {
    padding: 20px;
}

.item-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--diu-text);
    line-height: 1.4;
}

.item-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.item-card-category,
.item-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.item-card-category svg,
.item-card-date svg {
    color: #999;
}

.item-card-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}


/* Claim Page Styles */
.claim-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}

.claim-item-preview {
    background: var(--diu-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    height: fit-content;
}

.claim-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.claim-item-image.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #999;
}

.claim-item-details {
    padding: 16px 0;
}

.claim-item-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.claim-item-type.lost {
    background-color: #ffebee;
    color: #c62828;
}

.claim-item-type.found {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.claim-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--diu-text);
}

.claim-item-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.claim-item-category,
.claim-item-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.claim-item-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.claim-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.claim-form-card {
    background: var(--diu-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.claim-form-header {
    margin-bottom: 24px;
}

.claim-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--diu-green);
}

.claim-form-header p {
    color: #666;
    font-size: 14px;
}

.claim-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.claim-form .form-group label svg {
    color: var(--diu-green);
}

.file-upload-wrapper {
    position: relative;
}

.file-upload {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-label:hover {
    border-color: var(--diu-green);
    background-color: #f0f8f0;
}

.file-upload-label svg {
    color: #999;
}

.file-upload-label span {
    color: #666;
    font-size: 14px;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 12px;
}

.claim-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-lg svg {
    width: 20px;
    height: 20px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--diu-white);
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--diu-border);
}

table th {
    background-color: var(--diu-green);
    color: var(--diu-white);
    font-weight: 600;
}

table tr:hover {
    background-color: var(--diu-gray);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.status-returned {
    background-color: #cce5ff;
    color: #004085;
}

.status-claimed {
    background-color: #fff3cd;
    color: #856404;
}

.status-provided {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--diu-green);
    margin-bottom: 30px;
}

/* Search and Filters */
.search-bar {
    background-color: var(--diu-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.search-bar form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Contact Info (Hidden for guests) */
.contact-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: var(--diu-green);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--diu-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--diu-text);
}

.pagination a:hover {
    background-color: var(--diu-green);
    color: var(--diu-white);
    border-color: var(--diu-green);
}

.pagination .active {
    background-color: var(--diu-green);
    color: var(--diu-white);
    border-color: var(--diu-green);
}

/* Footer */
.footer {
    background-color: var(--diu-dark-green);
    color: var(--diu-white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #a8d5a8;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--diu-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--diu-green);
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .search-bar form {
        flex-direction: column;
    }

    .search-bar .form-group {
        width: 100%;
    }

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

    .item-card-actions {
        flex-direction: column;
    }

    .item-card-actions .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .claim-container {
        grid-template-columns: 1fr;
    }

    .claim-form-card {
        padding: 24px;
    }

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

    .claim-form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .card {
        padding: 15px;
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px 10px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.image-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background-color: var(--diu-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--diu-green);
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 16px;
}
