/* Softphone Toolbar Styles */
.softphone-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.softphone-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.softphone-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.softphone-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.call-status {
    font-size: 14px;
    font-weight: 500;
}

.call-number {
    font-size: 16px;
    font-weight: bold;
}

.call-timer {
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.btn {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn:hover {
    transform: scale(1.1);
}

.btn-call {
    background: #10b981;
    color: white;
}

.btn-end {
    background: #ef4444;
    color: white;
}

.btn-mute {
    background: #6b7280;
    color: white;
}

.btn-mute.active {
    background: #fbbf24;
}

.btn-dialpad {
    background: #3b82f6;
    color: white;
}

.dialpad-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 20px;
    display: none;
    z-index: 1001;
    color: #ffffff;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.dialpad-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dialpad-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
    transform: scale(1.05);
}

.dialpad-btn:active {
    background: rgba(59, 130, 246, 0.6);
}

.dialpad-btn.dtmf-sent {
    background: rgba(16, 185, 129, 0.6);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.phone-input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.phone-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
}

.call-btn-primary {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-btn-primary:hover {
    background: #059669;
}

.minimized {
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.status-connecting { color: #fbbf24; }
.status-ringing { color: #3b82f6; }
.status-connected { color: #10b981; }
.status-ended { color: #ef4444; }

/* Adjust main content when toolbar is present */
body.softphone-active {
    padding-top: 60px;
}

/* Hide toolbar by default, show when class is added */
.softphone-toolbar {
    display: none;
}

.softphone-toolbar.active {
    display: flex;
}
