/* Call page specific styles */

/* Call duration styling */
#call-duration-container {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 1.1em;
}

#call-duration {
    font-weight: bold;
    color: #28a745;
}

/* Call timer styling */
#call-timer {
    font-size: 2em;
    font-weight: bold;
    margin: 20px 0;
    color: #007bff;
}

/* Call controls */
.call-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.call-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.call-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.hangup-btn {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

.mute-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

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

/* Call status */
.call-status {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

#call-status-message {
    font-size: 1.2em;
    color: #495057;
}

/* Error container */
.error-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    text-align: center;
}

.error-container h2 {
    margin-top: 0;
    color: #721c24;
}

.error-container a {
    color: #721c24;
    font-weight: bold;
    text-decoration: underline;
}

/* Debug container */
.debug-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #cff4fc;
    color: #055160;
    border-radius: 5px;
    border: 1px solid #b6effb;
}

.debug-container h3, .debug-container h4 {
    margin-top: 0;
    color: #055160;
}

.debug-container pre {
    background-color: #fff;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 14px;
    white-space: pre-wrap;
}

.error-details {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8eaea;
    border-radius: 3px;
    text-align: left;
}

/* Troubleshooting info */
.troubleshooting-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 5px;
    border: 1px solid #ffeeba;
}

.troubleshooting-info p {
    margin-top: 0;
    margin-bottom: 10px;
}

.troubleshooting-info ol {
    margin-top: 0;
    padding-left: 20px;
}

.troubleshooting-info li {
    margin-bottom: 5px;
}

/* Call log styling */
.call-log {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
}

.call-log div {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Payment Modal Styles */
#payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

/* Modal close button */
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close-btn:hover {
    color: #333;
}

.payment-info {
    margin-bottom: 25px;
}

.payment-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5em;
}

.payment-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.payment-info small {
    color: #666;
    display: block;
    margin-top: 10px;
}

.payment-btn {
    background-color: #6772e5;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    transition: background-color 0.3s ease;
}

.payment-btn:hover {
    background-color: #5469d4;
}

.payment-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

#payment-status {
    margin-top: 10px;
    padding: 8px;
    background-color: #d4edda;
    border-radius: 4px;
}

/* Payment error styling */
.payment-error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545;
    font-weight: bold;
}

/* Inline payment information styles */
.payment-info-inline {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f9ff;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.call-pricing-info {
    margin: 0;
    color: #0c5460;
    font-size: 16px;
    line-height: 1.4;
}

.pricing-details {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #6c757d;
}

/* Inline payment button styling */
#inline-payment-button {
    margin-top: 15px;
}

#inline-payment-button .payment-btn {
    max-width: 200px;
    padding: 10px 20px;
    display: inline-block;
    background-color: #5469d4;
    transition: background-color 0.3s ease;
}

#inline-payment-button .payment-btn:hover {
    background-color: #4a5cbb;
}

/* Payment Flow Container */
.payment-flow-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.payment-info-inline h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.payment-info-inline .success-indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #4CAF50;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    font-weight: bold;
}

#payment-status {
    padding: 12px 20px;
    background-color: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    font-weight: 500;
    margin: 15px 0;
    color: #2e7d32;
    display: flex;
    align-items: center;
}

/* Calling Instructions */
.calling-instructions {
    margin-top: 25px;
    padding: 15px;
    background-color: #f4f6f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.calling-instructions h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.calling-instructions ol {
    padding-left: 2rem;
    counter-reset: item;
}

.calling-instructions li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
    line-height: 1.5;
    color: #555;
}

.calling-instructions li.current {
    color: #1976D2;
    font-weight: 600;
}

.calling-instructions li.completed {
    color: #4CAF50;
    text-decoration: line-through;
}

.calling-instructions .note {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* New styles for enhanced payment flow */
.payment-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.payment-flow-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
}

#inline-payment-button {
    margin: 15px 0;
}

.payment-btn {
    display: inline-block;
    background-color: #6772e5;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(103, 114, 229, 0.2);
}

.payment-btn:hover {
    background-color: #5469d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(103, 114, 229, 0.3);
}

.payment-btn:disabled {
    background-color: #b9b9b9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.call-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.call-btn:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

.call-btn:disabled:hover {
    background-color: #9e9e9e;
}

#call-status-message {
    font-weight: 500;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* Numpad styles */
.numpad-container {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.numpad-toggle-container {
    text-align: center;
    margin-bottom: 10px;
}

.toggle-numpad-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.toggle-numpad-btn:hover {
    background-color: #5a6268;
}

.toggle-numpad-btn.active {
    background-color: #007bff;
}

.numpad {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.numpad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.numpad-row:last-child {
    margin-bottom: 0;
}

.numpad-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.numpad-btn:hover {
    background-color: #e9ecef;
}

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

/* Animation for DTMF feedback */
.numpad-btn.pressed {
    animation: button-press 0.2s forwards;
}

@keyframes button-press {
    0% { transform: scale(1); background-color: white; }
    50% { transform: scale(0.95); background-color: #007bff; color: white; }
    100% { transform: scale(1); background-color: white; }
}

/* Payment notification */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    padding: 15px 20px;
    border-left: 4px solid #3498db;
}

.notification-content p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.notification-content p:first-child {
    font-weight: bold;
    color: #2980b9;
}

.new-payment-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.new-payment-btn:hover {
    background-color: #2980b9;
}

/* Payment errors */
.payment-error {
    color: #e74c3c;
    background-color: #fadbd8;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #e74c3c;
} 