/* WebRTC Softphone Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
}

/* Login Screen */
#login-screen {
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Phone Screen */
#phone-screen {
    padding: 30px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-connected {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-connecting {
    background: #ff9800;
    animation: pulse 1.5s infinite;
}

.status-disconnected {
    background: #f44336;
}

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

.status-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.logout-btn {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #d32f2f;
}

/* Number Input */
.number-input-container {
    margin-bottom: 20px;
}

#number-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
}

#number-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Dialpad */
.dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dialpad-btn {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.dialpad-btn:hover {
    background: #f5f5f5;
    border-color: #667eea;
    transform: scale(1.05);
}

.dialpad-btn:active {
    transform: scale(0.95);
    background: #667eea;
    color: white;
}

/* Call Buttons */
.call-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.call-btn, .answer-btn, .reject-btn, .hangup-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.call-btn {
    background: #4caf50;
    color: white;
}

.call-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.answer-btn {
    background: #4caf50;
    color: white;
}

.answer-btn:hover {
    background: #45a049;
}

.reject-btn {
    background: #f44336;
    color: white;
}

.reject-btn:hover {
    background: #d32f2f;
}

.hangup-btn {
    background: #f44336;
    color: white;
}

.hangup-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

/* Call Info */
#call-info {
    text-align: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        border-radius: 0;
        max-width: 100%;
        height: 100vh;
    }

    #login-screen, #phone-screen {
        padding: 20px;
    }
}

