* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease;
}



h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status {
    text-align: center;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    font-weight: 500;
}

.status.ready {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.status.waiting {
    background: #fff3cd;
    color: rgb(214, 141, 32);
}

.status.in-progress {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status .call-duration {
    display: inline;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 8px;
}

.phone-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="tel"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-call {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    transition: all 0.3s ease;
}

.btn-call.hangup {
    background: linear-gradient(45deg, #f44336, #da190b);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-call:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-hangup {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-hangup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.controls {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.controls.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.volume-control {
    margin-bottom: 15px;
}

.volume-control label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.call-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: none;
}

.call-info.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.call-info h3 {
    color: #333;
    margin-bottom: 10px;
}


.incoming-call {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.incoming-call.active {
    display: block;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.incoming-call h3 {
    margin-bottom: 15px;
    color: #333;
}

.incoming-call .buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    flex: 1;
}

.btn-reject {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
    flex: 1;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    border: 1px solid #f5c6cb;
}

.error-message.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.profile-select-container {
    margin: 1rem 0;
}

.profile-select-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

#profileSearch {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#profileSelect {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .phone-input {
        flex-direction: column;
    }
}