/* ============================
   ENHANCED LOST & FOUND FEATURES CSS
   ============================*/

/* CSS Variables for New Features */
:root {
    --claimStatusPending: #F39C12;
    --claimStatusApproved: #27AE60;
    --claimStatusRejected: #E74C3C;
    --claimStatusCompleted: #8E44AD;
    --expiredColor: #E67E22;
    --rewardColor: #16A085;
    --securityColor: #2C3E50;
    --moderationColor: #34495E;
}

/* ============================
   CLAIM SYSTEM STYLES
   ============================*/

/* Claim Status Badges */
.claim-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claim-status-pending {
    background-color: var(--claimStatusPending);
    color: white;
}

.claim-status-approved {
    background-color: var(--claimStatusApproved);
    color: white;
}

.claim-status-rejected {
    background-color: var(--claimStatusRejected);
    color: white;
}

.claim-status-completed {
    background-color: var(--claimStatusCompleted);
    color: white;
}

.claim-status-cancelled {
    background-color: #95A5A6;
    color: white;
}

/* Enhanced Claim Form */
.enhanced-claim-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
}

.enhanced-claim-form .form-group {
    margin-bottom: 25px;
}

.enhanced-claim-form label {
    font-weight: 600;
    color: var(--colorBlack);
    margin-bottom: 8px;
    display: block;
}

.enhanced-claim-form .form-control {
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.enhanced-claim-form .form-control:focus {
    border-color: var(--colorPrimary);
    box-shadow: 0 0 0 3px rgba(218, 18, 106, 0.1);
}

.proof-images-upload {
    border: 2px dashed #E8E8E8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.proof-images-upload:hover {
    border-color: var(--colorPrimary);
    background-color: rgba(218, 18, 106, 0.05);
}

.proof-images-upload .upload-icon {
    font-size: 48px;
    color: var(--colorPrimary);
    margin-bottom: 15px;
}

.proof-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.proof-image-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proof-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--claimStatusRejected);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   REWARD SYSTEM STYLES
   ============================*/

.reward-badge {
    background: linear-gradient(135deg, var(--rewardColor), #1ABC9C);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reward-badge .reward-icon {
    font-size: 16px;
}

.reward-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--rewardColor);
}

.reward-status-paid {
    background-color: var(--claimStatusApproved);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.reward-status-unpaid {
    background-color: var(--claimStatusPending);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================
   EXPIRY SYSTEM STYLES
   ============================*/

.expiry-warning {
    background: linear-gradient(135deg, #FFF3CD, #FCF8E3);
    border: 1px solid #FFEAA7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.expiry-warning.critical {
    background: linear-gradient(135deg, #F8D7DA, #F5C6CB);
    border-color: #F1556C;
}

.expiry-warning .expiry-icon {
    font-size: 24px;
    color: var(--expiredColor);
}

.expiry-warning.critical .expiry-icon {
    color: var(--claimStatusRejected);
}

.expiry-countdown {
    font-weight: 600;
    color: var(--expiredColor);
}

.expiry-countdown.critical {
    color: var(--claimStatusRejected);
}

.expired-item {
    opacity: 0.6;
    position: relative;
}

.expired-item::after {
    content: 'EXPIRED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--claimStatusRejected);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* ============================
   ADMIN MODERATION STYLES
   ============================*/

.moderation-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 20px 0;
}

.moderation-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.moderation-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moderation-btn.approve {
    background-color: var(--claimStatusApproved);
    color: white;
}

.moderation-btn.reject {
    background-color: var(--claimStatusRejected);
    color: white;
}

.moderation-btn.delete {
    background-color: var(--securityColor);
    color: white;
}

.moderation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.moderation-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.moderation-status.pending {
    background-color: var(--claimStatusPending);
    color: white;
}

.moderation-status.approved {
    background-color: var(--claimStatusApproved);
    color: white;
}

/* ============================
   SECURITY FEATURES STYLES
   ============================*/

.security-notice {
    background: linear-gradient(135deg, #E8F4FD, #D6EAF8);
    border: 1px solid #AED6F1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-notice .security-icon {
    font-size: 24px;
    color: var(--colorBlue);
    margin-top: 5px;
}

.security-notice h5 {
    color: var(--securityColor);
    margin-bottom: 8px;
    font-weight: 600;
}

.security-notice p {
    color: var(--securityColor);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.rate-limit-warning {
    background: linear-gradient(135deg, #FADBD8, #F1948A);
    border: 1px solid #E74C3C;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: var(--claimStatusRejected);
    font-weight: 600;
    text-align: center;
}

/* ============================
   DASHBOARD STATISTICS
   ============================*/

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradiantBg);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-card .stats-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--colorBlack);
    margin-bottom: 8px;
}

.stats-card .stats-label {
    font-size: 14px;
    color: var(--paraColor);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card.pending .stats-icon {
    color: var(--claimStatusPending);
}

.stats-card.approved .stats-icon {
    color: var(--claimStatusApproved);
}

.stats-card.rejected .stats-icon {
    color: var(--claimStatusRejected);
}

.stats-card.reward .stats-icon {
    color: var(--rewardColor);
}

/* ============================
   ENHANCED TABLES
   ============================*/

.enhanced-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.enhanced-table table {
    width: 100%;
    margin: 0;
}

.enhanced-table th {
    background: var(--gradiantBg);
    color: white;
    padding: 20px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.enhanced-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #F8F9FA;
    vertical-align: middle;
}

.enhanced-table tr:hover {
    background-color: #F8F9FA;
}

.table-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.table-action-btn.view {
    background-color: var(--colorBlue);
    color: white;
}

.table-action-btn.edit {
    background-color: var(--claimStatusPending);
    color: white;
}

.table-action-btn.delete {
    background-color: var(--claimStatusRejected);
    color: white;
}

.table-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ============================
   NOTIFICATION STYLES
   ============================*/

.notification-item.enhanced {
    border-left: 4px solid var(--colorPrimary);
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.notification-item.enhanced:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.notification-item.enhanced.claim-related {
    border-left-color: var(--claimStatusPending);
}

.notification-item.enhanced.reward-related {
    border-left-color: var(--rewardColor);
}

.notification-item.enhanced.expiry-related {
    border-left-color: var(--expiredColor);
}

.notification-item.enhanced.security-related {
    border-left-color: var(--securityColor);
}

/* ============================
   RESPONSIVE DESIGN
   ============================*/

@media (max-width: 768px) {
    .enhanced-claim-form {
        padding: 20px;
    }
    
    .proof-images-preview {
        justify-content: center;
    }
    
    .proof-image-item {
        width: 100px;
        height: 100px;
    }
    
    .moderation-actions {
        justify-content: center;
    }
    
    .stats-card {
        margin-bottom: 20px;
    }
    
    .enhanced-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .enhanced-claim-form {
        padding: 15px;
    }
    
    .stats-card .stats-number {
        font-size: 28px;
    }
    
    .stats-card .stats-icon {
        font-size: 36px;
    }
    
    .proof-images-upload {
        padding: 20px;
    }
    
    .proof-images-upload .upload-icon {
        font-size: 36px;
    }
}

/* ============================
   ANIMATION UTILITIES
   ============================*/

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================
   DARK MODE SUPPORT
   ============================*/

@media (prefers-color-scheme: dark) {
    .enhanced-claim-form,
    .moderation-panel,
    .stats-card,
    .enhanced-table {
        background-color: #2C3E50;
        color: #ECF0F1;
    }
    
    .enhanced-claim-form .form-control {
        background-color: #34495E;
        border-color: #4A5F7A;
        color: #ECF0F1;
    }
    
    .enhanced-table td {
        border-bottom-color: #34495E;
    }
    
    .enhanced-table tr:hover {
        background-color: #34495E;
    }
}

/* ============================
   LOADING STATES
   ============================*/

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--colorPrimary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
