/* Twilio Call Notifications Styles */

.call-notification-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 450px;
    max-width: 95%;
    font-family: 'Roboto', sans-serif;
}

.call-notification {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-bottom: 15px;
    border-left: 8px solid #4093A4;
    animation: slideIn 0.3s ease-out, pulse 2s infinite;
}

.call-notification.active {
    border-left-color: #28a745;
    background-color: #f8fff8;
    box-shadow: 0 6px 30px rgba(40, 167, 69, 0.3);
}

.call-notification.passive {
    border-left-color: #56768b;
    animation: slideIn 0.3s ease-out;
}

.call-notification.completed {
    border-left-color: #56768b;
    animation: none;
    opacity: 0.8;
}

.call-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.call-icon {
    font-size: 32px;
    color: #4093A4;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(64, 147, 164, 0.1);
    border-radius: 50%;
}

.call-notification.active .call-icon {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.call-notification.passive .call-icon {
    color: #56768b;
    background-color: rgba(86, 118, 139, 0.1);
}

.call-info {
    flex: 1;
}

.call-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
    color: #343a40;
}

.call-number {
    font-size: 22px;
    margin: 5px 0;
    font-weight: 600;
    color: #212529;
}

.call-office {
    font-size: 16px;
    color: #495057;
    margin-bottom: 3px;
}

.call-timestamp {
    font-size: 14px;
    color: #6c757d;
}

.call-status {
    font-size: 16px;
    font-weight: 500;
    margin-top: 5px;
    color: #495057;
}

/* Call timer styles */
.call-timer {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0;
    color: #4093A4;
}

/* Microphone indicator styles */
.mic-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.microphone-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.mic-active {
    background-color: #28a745;
    animation: pulse 1.5s infinite;
}

.mic-muted {
    background-color: #fc432e;
}

.mic-inactive {
    background-color: #6c757d;
}

/* Call actions styles */
.call-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.call-actions button {
    flex: 1;
    margin: 0 5px;
    padding: 10px 0;
    font-weight: 500;
    font-size: 16px;
    border-radius: 5px;
}

/* Call button styles for active calls */
.call-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    padding: 0;
}

.call-actions.active-call {
    justify-content: center;
}

.call-actions button:first-child {
    margin-left: 0;
}

.call-actions button:last-child {
    margin-right: 0;
}

.call-actions .btn-success {
    background-color: #4093A4;
    border-color: #4093A4;
}

.call-actions .btn-danger {
    background-color: #fc432e;
    border-color: #fc432e;
}

.call-passive-notice {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #56768b;
    font-size: 16px;
}

.call-completed-notice {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #28a745;
    font-size: 16px;
}

.call-connecting-notice {
    margin-top: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #4093A4;
    font-size: 16px;
}

.call-error-notice {
    margin-top: 15px;
    padding: 12px;
    background-color: #fff3cd;
    border-radius: 6px;
    text-align: center;
    color: #fc432e;
    font-size: 16px;
    margin-bottom: 15px;
    border-left: 4px solid #fc432e;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 6px 40px rgba(64, 147, 164, 0.5); }
    100% { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3); }
}

/* Attention class for making the notification more noticeable */
.call-notification-container.attention .call-notification {
    animation: slideIn 0.3s ease-out, pulse 1.5s infinite;
    box-shadow: 0 6px 40px rgba(64, 147, 164, 0.5);
}

/* Call icon in navbar */
.navbar-call-icon {
    position: relative;
    display: inline-block;
}

.navbar-call-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #fc432e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1s infinite;
}

/* Add a full-screen overlay when there's an active call */
.call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
}

.call-notification-container.attention + .call-overlay {
    display: block;
}

/* Sound notification styles */
.notification-sound {
    display: none;
} 