* {
    box-sizing: border-box;
}

body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: "Inter", Arial;
    margin: 0;
}

/* HEADER */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid #1e293b;
}

/* SECTIONS */
section {
    padding: 30px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card span {
    font-size: 32px;
    font-weight: bold;
}

/* COLORS */
.available { border-left: 4px solid #3b82f6; }
.ringing { border-left: 4px solid #facc15; }
.oncall { border-left: 4px solid #22c55e; }
.dnd { border-left: 4px solid #ef4444; }
.abandoned { border-left: 4px solid #f97316; }

/* QUEUES */
.queue-calls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.queue-call-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
}

/* QUEUE STATS */
.queue-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.q-item {
    background: #0f172a;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.q-item span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.q-item b {
    font-size: 18px;
}

/* SAME COLORS */
.q-item.available { border-left: 3px solid #3b82f6; }
.q-item.ringing { border-left: 3px solid #facc15; }
.q-item.oncall { border-left: 3px solid #22c55e; }
.q-item.dnd { border-left: 3px solid #ef4444; }

.queue-footer {
    margin-top: 10px;
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
}

/* AGENTS TABLE */
#agents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#agents-table th,
#agents-table td {
    padding: 10px;
    border-bottom: 1px solid #1e293b;
    text-align: center;
}

/* SEARCH */
#agentSearch {
    padding: 10px;
    width: 250px;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
}

/* POPUP */
#ringing-popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.ring-popup {
    background: #facc15;
    color: black;
    padding: 12px 18px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: bold;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.blink {
    animation: blinkAnim 1s infinite;
}

@keyframes blinkAnim {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.active-queue {
    outline: 2px solid #3b82f6;
}