/**
 * Ghost Loader Styles for Flight Status
 * Modern skeleton loading animation
 */

/* Ghost Loader Container */
.chs-ghost-loader {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Loading Text */
.chs-loading-text {
    text-align: center;
    font-size: 18px;
    color: #1B365D;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Animated Dots */
@keyframes loadingDots {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

.chs-loading-dot {
    animation: loadingDots 1.4s infinite;
    display: inline-block;
}

.chs-loading-dot:nth-child(1) { animation-delay: 0s; }
.chs-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.chs-loading-dot:nth-child(3) { animation-delay: 0.4s; }

/* Ghost Row */
.chs-ghost-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    animation: ghostPulse 1.5s infinite;
}

.chs-ghost-row:last-child {
    border-bottom: none;
}

/* Ghost Cells */
.chs-ghost-cell {
    flex: 1;
    padding: 0 10px;
}

.chs-ghost-airline {
    display: flex;
    align-items: center;
    flex: 1.5;
}

.chs-ghost-logo {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 12px;
}

.chs-ghost-airline-info {
    flex: 1;
}

.chs-ghost-line {
    height: 14px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 6px;
}

.chs-ghost-line:last-child {
    margin-bottom: 0;
}

/* Pulse Animation */
@keyframes ghostPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Refresh Indicator */
.chs-refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1B365D;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.chs-refresh-text {
    font-size: 14px;
}

.chs-refresh-now {
    background: white;
    color: #1B365D;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.chs-refresh-now:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .chs-ghost-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }
    
    .chs-ghost-cell {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .chs-refresh-indicator {
        bottom: 70px;
        right: 10px;
        left: 10px;
        justify-content: space-between;
    }
}