/* Survey Section Styles */
.survey-list-item {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 8px;
}

.survey-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.survey-date-box {
    width: 56px;
    min-height: 56px;
    background: var(--yellow);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 241, 0, 0.3);
    position: relative;
}

.survey-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
}

.survey-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.survey-content {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

.survey-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.survey-property-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.survey-category {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    margin: 0 0 8px 0;
    text-transform: capitalize;
}

.survey-status-mobile {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 8px 0;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

/* Desktop: Hide mobile status */
@media (min-width: 769px) {
    .survey-status-mobile {
        display: none;
    }
}

.survey-time {
    font-size: 14px;
    color: var(--blue);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.survey-time svg {
    color: var(--blue);
    opacity: 0.8;
}

.survey-location {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.survey-location svg {
    color: var(--red);
    opacity: 0.8;
}

.survey-arrow {
    display: flex;
    align-items: center;
    color: #bbb;
    margin-left: 16px;
    align-self: center;
    opacity: 0.6;
}

.survey-arrow svg {
    transition: all 0.2s ease;
}

.survey-list-item:hover .survey-arrow svg {
    opacity: 1;
    transform: translateX(2px);
}

/* Survey Status Badge - Positioned right center */
.survey-status-badge {
    display: flex;
    align-items: center;
    margin-left: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}

.survey-status-badge .status-overlay-badge {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Status Colors */
.status-overlay-badge.status-progress {
    background: #3B82F6;
    color: white;
}

.status-overlay-badge.status-success {
    background: #10B981;
    color: white;
}

.status-overlay-badge.status-warning {
    background: #F59E0B;
    color: white;
}

.status-overlay-badge.status-reject {
    background: #EF4444;
    color: white;
}

.status-overlay-badge.status-con {
    background: #e0e7ff;
    color: var(--btn-blue);
}

.status-overlay-badge.status-failed {
    background: #DC2626;
    color: white;
}

/* ===== SURVEY RESPONSIVE LAYOUT ===== */
/* Desktop & Large Tablet (1024px and up) */
@media (min-width: 1024px) {
    .penghuni-kost-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px 16px;
        gap: 24px;
    }
}

/* Medium Tablet (768px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .penghuni-kost-container {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px 16px;
        gap: 28px;
    }
}

/* ===== SURVEY FILTER & SEARCH STYLES ===== */
/* Filter Section */
.survey-filters {
    background: var(--white);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title i {
    color: var(--blue);
    font-size: 18px;
}

/* Status Filter Buttons - Horizontal Scroll */
.status-filters {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.status-filters::-webkit-scrollbar {
    display: none;
}

.status-filter-btn {
    padding: 6px 12px;
    border: 1px solid #E5E7EB;
    background: var(--white);
    color: #6B7280;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Active button state - Yellow brand color */
.status-filter-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 241, 0, 0.25);
}

/* Hover effects */
@media (hover: hover) {
    .status-filter-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
        background: rgba(27, 117, 187, 0.08);
        box-shadow: 0 2px 6px rgba(27, 117, 187, 0.15);
    }
    
    .status-filter-btn.active:hover {
        background: var(--yellow);
        border-color: var(--yellow);
        color: var(--black);
        box-shadow: 0 3px 10px rgba(255, 241, 0, 0.3);
    }
}

/* Search Input */
.search-input-group {
    position: relative;
    max-width: 400px;
}

.search-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 15px;
    z-index: 2;
}

#searchSurvey {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
    height: 42px;
    box-sizing: border-box;
    line-height: 1.4;
}

#searchSurvey:focus {
    border-color: var(--yellow);
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(255, 241, 0, 0.15);
}

#searchSurvey::placeholder {
    color: #9CA3AF;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
    .survey-filters {
        margin-bottom: 10px;
        padding: 16px;
        border-radius: 10px;
    }
    
    .status-filters {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .status-filter-btn {
        font-size: 12px;
        padding: 5px 10px;
        min-height: 30px;
    }
    
    .search-input-group {
        max-width: 100%;
    }
    
    #searchSurvey {
        height: 40px;
        font-size: 14px;
    }
    
    /* Mobile Survey Items Layout */
    .survey-list-item {
        padding: 16px 12px;
        align-items: flex-start;
        gap: 12px;
    }
    
    .survey-date-box {
        width: 48px;
        min-height: 48px;
        margin-right: 0;
        flex-shrink: 0;
        margin-top: 4px;
    }
    
    .survey-day {
        font-size: 18px;
    }
    
    .survey-month {
        font-size: 10px;
    }
    
    .survey-content {
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    
    .survey-title {
        font-size: 15px;
        margin: 0 0 6px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .survey-property-name {
        font-size: 15px;
        margin: 0 0 2px 0;
        line-height: 1.4;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .survey-category {
        font-size: 12px;
        margin: 0 0 6px 0;
        color: #6B7280;
        font-weight: 500;
    }
    
    .survey-status-mobile {
        font-size: 11px;
        margin: 0 0 6px 0;
        padding: 2px 6px;
        border-radius: 3px;
        font-weight: 500;
        display: inline-block;
        width: fit-content;
        color: white;
    }
    
    .survey-status-mobile.status-progress {
        background: #3B82F6;
    }
    
    .survey-status-mobile.status-success {
        background: #10B981;
    }
    
    .survey-status-mobile.status-warning {
        background: #F59E0B;
    }
    
    .survey-status-mobile.status-reject {
        background: #EF4444;
    }
    
    .survey-status-mobile.status-done {
        background: var(--green);
    }
    
    .survey-status-mobile.status-failed {
        background: #DC2626;
    }
    
    /* Mobile: Hide desktop status badge */
    .survey-status-badge {
        display: none;
    }
    
    .survey-time {
        font-size: 13px;
        margin-bottom: 4px;
        gap: 6px;
    }
    
    .survey-location {
        font-size: 13px;
        gap: 6px;
    }
    
    /* Mobile Status Badge - Stack vertically */
    .survey-status-badge {
        align-self: flex-start;
        margin-left: 0;
        margin-right: 0;
        margin-top: 4px;
    }
    
    .survey-status-badge .status-overlay-badge {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 4px;
    }
    
    .survey-arrow {
        display: none;
    }
}

/* ===== SURVEY EMPTY STATE ===== */
.survey-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed #E5E7EB;
    margin: 20px 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-empty-content i {
    font-size: 48px;
    color: #D1D5DB;
    margin-bottom: 15px;
    display: block;
}

.survey-empty-content h3 {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.survey-empty-content p {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* ===== SURVEY LOADING & ERROR STATES ===== */
.survey-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #FEE2E2;
    margin: 20px 0;
    color: #DC2626;
}