body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header with logo */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

h1 {
    color: #333;
    margin: 0;
    font-size: 2em;
}

h3 {
    color: #555;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.connection-panel,
.call-panel,
.logs-panel {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
}

.status-panel {
    margin-bottom: 30px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-row {
    margin-bottom: 15px;
}

.config-row label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}

.config-row input {
    width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#registerBtn {
    background-color: #28a745;
    color: white;
}

#registerBtn:hover {
    background-color: #218838;
}

#unregisterBtn {
    background-color: #6c757d;
    color: white;
}

#unregisterBtn:hover:not(:disabled) {
    background-color: #545b62;
}

.status-indicator {
    text-align: center;
    padding: 0;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

#status {
    padding: 20px;
    border-radius: 5px;
    color: white;
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;
}

.status-disconnected {
    background-color: #dc3545;
}

.status-connecting {
    background-color: #ffc107;
}

.status-registered {
    background-color: #28a745;
}

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

.answer:hover {
    background-color: #218838;
}

#callBtn {
    background-color: #007bff;
    color: white;
}

#callBtn:hover:not(:disabled) {
    background-color: #0056b3;
}

#callBtn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.outbound-call {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

#outgoingCall {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin-bottom: 20px;
}

#outgoingCall p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.reject,
.hangup {
    background-color: #dc3545;
    color: white;
}

.reject:hover,
.hangup:hover {
    background-color: #c82333;
}

#muteBtn,
#holdBtn {
    background-color: #007bff;
    color: white;
}

#muteBtn:hover,
#holdBtn:hover {
    background-color: #0056b3;
}

#muteBtn.active {
    background-color: #ffc107;
    color: black;
}

#holdBtn.active {
    background-color: #ffc107;
    color: black;
}

.call-controls {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.call-controls .button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.call-controls button {
    margin: 0;
}

.audio-controls {
    margin-top: 15px;
}

.audio-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volumeControl {
    flex: 1;
}

.hidden {
    display: none;
}

#logs {
    height: 200px;
    overflow-y: scroll;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.log-entry {
    margin-bottom: 5px;
    padding: 2px;
}

.log-info {
    color: #007bff;
}

.log-error {
    color: #dc3545;
    font-weight: bold;
}

.log-success {
    color: #28a745;
}

@media (max-width: 600px) {
    .config-row label {
        display: block;
        margin-bottom: 5px;
    }

    .config-row input {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Logs panel toggle functionality */
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logs-header h3 {
    margin: 0;
}

.toggle-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

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

.logs-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.logs-content.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Call duration timer styling */
.call-duration {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0 0 0;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

#callTimer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #495057;
    font-weight: bold;
}