/* Dashboard/Home Page Styles */

/* ONLY for the dashboard pages (don't touch navbar) */
.dashboard-container{
    padding: 20px;
    max-width: 1400px;
    margin: 30px auto 0 auto;  /* < this adds space under the nav */
}

.dashboard-container h1{
    font-family: 'Satoshi', sans-serif;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* Adds breathing room under the top nav */
.container.mt-4{
    padding-top: 18px;   /* try 18–28px */
  }

/* Lost items header item-grid (title left, pills right) */
.lost-items-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin: 10px 0 14px;
    width:100%;
    margin-top: 4%;
  }
  
  .lost-items-header .uf-section-title{
    margin:0;
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    font-weight: 400;
    font-size: 24px;
  }
  
/* right-side pills */
.header-actions{
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
  }
  
  /* pill base */
  .recent-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-decoration:none;
    white-space: nowrap;
  }
  
  .recent-pill--filled{
    background:#f2f2f2;
    border:1px solid #e2e2e2;
    color: var(--text);
  }
  
  .recent-pill--outline{
    background:#ffffff;
    border:1px solid #e2e2e2;
    color: var(--text);
  }
  
  .recent-pill:hover{
    border-color:#cfcfcf;
  }
  

/* Category Navigation - centered */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
    margin-top: 0;
}

/* Desktop category buttons container */
.category-buttons-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

/* Hide dropdown and mobile special buttons on desktop */
.filter-dropdown-container,
.special-buttons {
    display: none;
}

/* Show category buttons on desktop */
.category-link {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-link:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.category-link.special-link {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.category-link.special-link:hover {
    background: #516b56;
}

/* Dropdown styles (for mobile only) */
.filter-dropdown-container label {
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    text-align: center;
}

.filter-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.filter-dropdown:hover {
    border-color: var(--brand);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(143, 0, 26, 0.1);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.item-card-wrapper{
        width: 100%;
}


/* Card Styles - Fixed Height */
.card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
}

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

.card.bg-light {
    opacity: 0.6;
}

/* Fixed Image Size */
.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: block;
}

/* Card Body - Flexible */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    color: var(--brand);
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-text {
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.card-text:last-of-type {
    margin-bottom: 16px;
}

.card-text strong {
    color: var(--text);
    font-weight: 600;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    width: 100%;
    text-align: center;
}

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

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

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--radius);
    border: none;
}


.modal-header {
    background-color: var(--brand);
    color: white;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.modal-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-family: 'Satoshi', sans-serif;
    color: var(--text);
    margin-bottom: 16px;
}

.modal-body label {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.modal-body textarea,
.modal-body input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 16px 24px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Stack header on mobile */
    .lost-items-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: static;
    }
    
    .container h2 {
        text-align: center;
    }
    
    /* .header-actions {
        width: 100%;
        position: static;
        justify-content: center;
    }
    
    .header-actions .category-link {
        flex: 1;
    } */
    
    /* Hide desktop category buttons on mobile/tablet */
    .category-buttons-desktop {
        display: none;
    }
    
    /* Show dropdown on mobile/tablet */
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-dropdown-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 400px;
    }
    
    /* Show special buttons on mobile */
    .special-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
        max-width: 400px;
    }
    
    .special-buttons .category-link {
        flex: 1;
        text-align: center;
    }
}

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

    .category-nav {
        padding: 15px 0;
    }
    
    .filter-dropdown-container,
    .special-buttons {
        max-width: 100%;
    }
    
    .filter-dropdown {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .special-buttons .category-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .item-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

   
}

 /* ===== Recently buttons (pills) - final override ===== */
 .lost-items-header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    width:100% !important;
  }
  
  .header-actions{
    display:flex !important;
    gap:12px !important;
    align-items:center !important;
    justify-content:flex-end !important;
    position:static !important;
    right:auto !important;
    width:auto !important;
    opacity:1 !important;
    visibility:visible !important;
  }
  
  .recent-pill{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:10px 16px !important;
    border-radius:999px !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    border:1px solid #e2e2e2 !important;
    color:#2d2d2c !important;
  }
  
  .recent-pill--filled{
    background:#f2f2f2 !important;
  }
  
  .recent-pill--outline{
    background:#ffffff !important;
  }

  /* Back Button Styles */


.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    margin-top: 31px;
    margin-bottom: 24px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: var(--text);
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-button:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    transform: translateX(-2px);
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 576px) {
    .back-button {
        font-size: 14px;
        padding: 8px 14px;
        margin-top: 20px;
        margin-bottom: 18px;
    }
    
    .back-button svg {
        width: 18px;
        height: 18px;
    }
}