/* Phone Status Monitor */
.page-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Summary cards row */
.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: #16213e;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.summary-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 6px;
}

.summary-card .value {
    font-size: 28px;
    font-weight: 700;
}

.summary-card .value.available { color: #2ed573; }
.summary-card .value.busy { color: #ffa502; }
.summary-card .value.stuck { color: #ff4757; }
.summary-card .value.total { color: #00d4ff; }

/* Toolbar */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.page-toolbar h1 {
    font-size: 20px;
    text-align: left;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.auto-refresh-toggle input[type="checkbox"] {
    width: auto;
    accent-color: #00d4ff;
}

.refresh-indicator {
    font-size: 12px;
    color: #555;
}

.refresh-indicator.active {
    color: #00d4ff;
}

/* Phone number grid */
.phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Phone card */
.phone-card {
    background: #16213e;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.phone-card.available {
    border-left-color: #2ed573;
}

.phone-card.busy {
    border-left-color: #ffa502;
}

.phone-card.stuck {
    border-left-color: #ff4757;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.15);
}

/* Card header */
.phone-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.phone-name {
    font-size: 15px;
    font-weight: 600;
    color: #eee;
}

.phone-number-text {
    font-size: 13px;
    color: #888;
    font-family: 'Courier New', monospace;
}

/* Status badge */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.status-badge.available {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.status-badge.busy {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
}

.status-badge.stuck {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Card details */
.phone-card-details {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.detail-row .detail-label {
    color: #666;
}

.detail-row .detail-value {
    color: #ccc;
}

/* Active call section */
.active-call-info {
    background: rgba(255, 165, 2, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.active-call-info .call-header {
    font-weight: 600;
    color: #ffa502;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-call-info .detail-row .detail-value {
    color: #ddd;
}

/* Release button */
.btn-release {
    background: #ff4757;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.btn-release:hover:not(:disabled) {
    background: #ff3344;
}

.btn-release:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-reset-all {
    background: #ff4757;
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-reset-all:hover:not(:disabled) {
    background: #ff3344;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #555;
    font-size: 15px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #16213e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: #eee;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #2ed573;
}

.toast.error {
    border-left: 4px solid #ff4757;
}
