/* Infoset WebPhone v6.1 - Professional Styles */

* {
    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;
    padding: 20px;
}

.phone-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.phone-container h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 28px;
}

.version {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 12px;
    border-bottom: 2px solid #e9ecef;
}

.main-content {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Status Panel */
.status-panel {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.status-value {
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 13px;
}

/* Input Groups */
.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* Transfer Section */
.transfer-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.transfer-section h3 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.transfer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* DTMF Keypad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 280px;
    margin: 0 auto;
}

.key {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.key:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.key:active {
    transform: scale(0.95);
}

.key-letters {
    font-size: 9px;
    font-weight: 400;
    color: #6c757d;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.key:hover .key-letters {
    color: rgba(255, 255, 255, 0.8);
}

/* Console Log */
.console-log {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 15px;
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.info {
    color: #4fc3f7;
}

.log-entry.success {
    color: #66bb6a;
}

.log-entry.warning {
    color: #ffb74d;
}

.log-entry.error {
    color: #ef5350;
}

.log-entry.debug {
    color: #9e9e9e;
}

/* Incoming Call Modal */
.incoming-call-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.incoming-call-modal.show {
    display: flex;
}

.incoming-call-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ringing-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 4px solid #28a745;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.incoming-call-content h2 {
    color: #495057;
    margin-bottom: 15px;
}

.incoming-caller {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.incoming-number {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

.incoming-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-answer {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-answer:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-reject {
    background: #dc3545;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reject:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Remote Audio */
audio {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    .keypad {
        gap: 6px;
        padding: 10px;
        max-width: 250px;
    }
    
    .key {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
}

/* Scrollbar Styling */
.console-log::-webkit-scrollbar {
    width: 8px;
}

.console-log::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.console-log::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.console-log::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}