﻿/* Modern Active Order Banner Styles */
.active-order-host {
    margin: 0;
    padding: 0;
}

    .active-order-host:empty {
        display: none;
    }

.active-order-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary, #1ba57e) 0%, var(--secondary, #16a085) 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 5px 0;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(27, 165, 126, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .active-order-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .active-order-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(27, 165, 126, 0.35);
        text-decoration: none;
        color: white;
    }

        .active-order-banner:hover::before {
            opacity: 1;
        }

.aob-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.aob-body {
    flex: 1;
    min-width: 0;
}

.aob-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aob-meta {
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aob-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.aob-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.active-order-banner:hover .aob-arrow {
    transform: translateX(4px);
}

/* Skeleton Loading */
.aob-skeleton {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.aob-sk-ico {
    width: 48px;
    height: 48px;
    background: #e9ecef;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.aob-sk-line {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
}

.aob-sk-w1 {
    width: 60%;
}

.aob-sk-w2 {
    width: 40%;
    margin-bottom: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Live Courier Indicator */
.aob-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aob-live-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .active-order-banner {
        padding: 14px 16px;
        margin: 12px 0;
    }

    .aob-left {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .aob-title {
        font-size: 15px;
    }

    .aob-meta {
        font-size: 13px;
        gap: 6px;
    }

    .aob-status {
        font-size: 11px;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .aob-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .aob-title {
        font-size: 14px;
    }
}

/* Sol yuvarlak rozet */
.active-order-banner .aob-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

/* İkonun görünümü */
.active-order-banner .aob-ico {
    font-size: 22px;
    line-height: 1;
    color: #fff; /* bannerın kontrastı için beyaz */
}

/* Ok ikonu hizası */
.active-order-banner .aob-arrow .aob-ico {
    font-size: 22px;
    opacity: .95;
}

