/* Caller ID Card Styles */
.caller-id-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1080px;
    max-width: 92vw;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: callerIdSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

@keyframes callerIdSlideIn {
    from {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.caller-id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2C5F4A, #4CAF50);
}

/* Kayıtlı müşteri - Yeşil tema */
.caller-id-known::before {
    background: linear-gradient(90deg, #2C5F4A, #4CAF50);
}

/* Bilinmeyen numara - Turuncu tema */
.caller-id-unknown::before {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

/* Hata - Kırmızı tema */
.caller-id-error::before {
    background: linear-gradient(90deg, #F44336, #D32F2F);
}

.caller-id-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.caller-id-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C5F4A, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    animation: callerIdPulse 2s infinite;
}

.caller-id-unknown .caller-id-icon {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.caller-id-error .caller-id-icon {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

@keyframes callerIdPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(44, 95, 74, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(44, 95, 74, 0);
    }
}

.caller-id-icon i {
    color: white;
    font-size: 24px;
}

.caller-id-title {
    flex: 1;
}

.caller-id-title h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.caller-id-status {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.caller-id-known .caller-id-status {
    color: #2C5F4A;
}

.caller-id-unknown .caller-id-status {
    color: #FF9800;
}

.caller-id-error .caller-id-status {
    color: #F44336;
}

.caller-id-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caller-id-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    transform: rotate(90deg);
}

.caller-id-body {
    padding: 30px;
    text-align: center;
}

.customer-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C5F4A, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(44, 95, 74, 0.3);
}

.customer-avatar-large.unknown {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.customer-avatar-large i {
    font-size: 60px;
    color: white;
}

.customer-name {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.customer-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 16px;
    color: #495057;
}

.detail-item i {
    margin-right: 10px;
    color: #2C5F4A;
    width: 20px;
    text-align: center;
}

.caller-id-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.caller-id-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.caller-id-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.caller-id-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.caller-id-actions .btn-success {
    background: linear-gradient(135deg, #2C5F4A, #4CAF50);
    color: white;
}

.caller-id-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 74, 0.4);
}

.caller-id-actions .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.caller-id-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

/* Caller ID Settings Panel */
.caller-id-settings {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.caller-id-settings h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.caller-id-connection-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.connection-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    animation: connectionBlink 2s infinite;
}

.connection-indicator.connected {
    background: #4CAF50;
}

.connection-indicator.disconnected {
    background: #F44336;
    animation: none;
}

@keyframes connectionBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.connection-text {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.test-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-buttons .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .caller-id-card {
        width: 95vw;
    }

    .customer-name {
        font-size: 22px;
    }

    .detail-item {
        font-size: 14px;
    }

    .caller-id-actions {
        flex-direction: column;
    }

    .caller-id-actions .btn {
        width: 100%;
        min-width: auto;
    }
}