/* ============================================
   CLAIMED ITEMS PAGE - claimed_items.css
   ============================================ */

/* Full height layout */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.claimed-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 73px);
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */

.claimed-sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    border-right: 1px solid #e8e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.claimed-sidebar-header {
    padding: 20px 24px 16px;
    background: #f0f2ff;
    border-bottom: 1px solid #e8e8f0;
}

.claimed-sidebar-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e1e2e;
    text-align: center;
}

.claimed-list {
    flex: 1;
    overflow-y: auto;
}

.claimed-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    gap: 10px;
}

.claimed-list-item:hover { background: #f8f9ff; }
.claimed-list-item.active {
    background: #eef0ff;
    border-left: 3px solid #7c83fd;
}

.claimed-list-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.claimed-list-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e1e2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.claimed-list-claimant {
    font-size: 12px;
    color: #aaa;
}

/* Status Badges */
.claimed-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-pending { background: #fff3e0; color: #f57c00; }
.status-claimed { background: #e8f5e9; color: #2e7d32; }

.claimed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: #ccc;
}

.claimed-empty p { font-size: 13px; font-weight: 600; }

/* ============================================
   RIGHT DETAIL PANEL
   ============================================ */

.claimed-detail-panel {
    flex: 1;
    background: #f8f9ff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.claimed-detail-scroll {
    padding: 24px 32px 40px;
    flex: 1;
}

.claimed-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e1e2e;
    text-align: center;
    margin-bottom: 20px;
}

/* Item Image */
.claimed-img-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 20px;
    background: #f0f2f5;
}

.claimed-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claimed-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7ff;
}

.claimed-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.badge-found { background: #7c83fd; }
.badge-lost  { background: #ff6b6b; }

/* Info Grid */
.claimed-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(124,131,253,0.08);
}

.claimed-info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.claimed-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
}

.claimed-info-value {
    background: #f8f9ff;
    border: 1.5px solid #e8e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1e2e;
    min-height: 38px;
}

/* ============================================
   CLAIM FORM
   ============================================ */

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

.claimed-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.claimed-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e2e;
}

.claimed-form-group textarea {
    padding: 11px 14px;
    border: 1.5px solid #e8e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: #1e1e2e;
    outline: none;
    resize: vertical;
    min-height: 120px;
    background: white;
    transition: border-color 0.2s;
}

.claimed-form-group textarea:focus {
    border-color: #7c83fd;
    box-shadow: 0 0 0 3px rgba(124,131,253,0.12);
}

/* Upload Zone */
.claimed-upload-zone {
    border: 2px dashed #d5d5e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafe;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.claimed-upload-zone.drag-over {
    border-color: #7c83fd;
    background: #f0f1ff;
}

.claimed-upload-zone.has-preview { padding: 12px; }

.claimed-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.claimed-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e1e2e;
}

.claimed-upload-hint {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
}

.claimed-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1a1a2e;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.2s;
}

.claimed-upload-btn:hover { background: #2d2d4a; }

#proofPreviewContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#proofPreviewContainer img {
    max-height: 140px;
    max-width: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.claimed-remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4d4d;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Action Buttons */
.claimed-action-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
}

.claimed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 36px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.15s, opacity 0.2s;
}

.claimed-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.claimed-btn-confirm {
    background: #2ecc71;
    color: white;
    box-shadow: 0 4px 14px rgba(46,204,113,0.35);
}

.claimed-btn-cancel {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 14px rgba(255,107,107,0.35);
}

/* ============================================
   CLAIMED HISTORY VIEW
   ============================================ */

.claimed-history {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(124,131,253,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.claimed-history-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.claimed-history-date {
    font-size: 13px;
    color: #888;
}

.claimed-history-comments {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.claimed-history-comments strong {
    display: block;
    color: #1e1e2e;
    margin-bottom: 6px;
}

.claimed-proof-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1e1e2e;
}

.claimed-proof-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: contain;
    border: 2px solid #e8e8f0;
}

/* ============================================
   NO SELECTION STATE
   ============================================ */

.claimed-no-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.claimed-no-selection h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e1e2e;
}

.claimed-no-selection p {
    font-size: 13px;
    color: #aaa;
    max-width: 280px;
    line-height: 1.6;
}

/* ============================================
   SUCCESS ALERT
   ============================================ */

.claim-success-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #f0fff4;
    border-bottom: 1px solid #b2f0c5;
    color: #1a7a3c;
    font-size: 14px;
    font-weight: 600;
}