* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    font-family: 'IBM Plex Sans', sans-serif !important;
    background-color: #f5f5f5;
    display: flex;
    position: relative;
    margin: 0;
    flex-direction: column;
    height: 100%;
}

header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(to right, #005c95 0%, #52247f 50%, #b31c2e 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 55px;
    text-align: center;
    color: white;
}

.app-name {
    font-size: 24px;
    font-weight: bold;
    margin-left: 1rem;
}

.logo {
    width: 60px;
    height: 48px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 350px;
    padding: 0.5rem;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 10px;
    max-width: 600px;
    position: relative;
    width: 400px;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.section {
    margin-bottom: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
    text-wrap: inherit;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    /* box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); */
    box-shadow: #2563eb;
}

form.submitted input[type="text"]:invalid,
form.submitted select:invalid {
    border-color: #ff4757;
    background: #fff5f5;
}

form.submitted input[type="text"]:valid,
form.submitted select:valid {
    /* border-color: #2ed573; */
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

form.submitted input:invalid~.error-message,
form.submitted select:invalid~.error-message {
    display: block;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
    background-color: #cccccc;
    /* Light gray background */
    color: #666666;
    /* Dimmed text */
    cursor: not-allowed;
    /* Shows disabled cursor */
    opacity: 0.7;
    /* Slight transparency */
    transition: background-color 0.3s ease;

}

.btn-secondary {
    background: #6366f1;
    color: white;
}

.btn-secondary:hover {
    background: #4f46e5;
}

.call-controls {
    margin-bottom: 10px;
}

.call-controls input {
    width: 100%;
}

.manage-call-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-manage {
    background: #6366f1;
    color: white;
    padding: 8px;
}

.btn-manage:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.status-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
}

.dialpad {
    transition: all 0.3s ease;
    overflow: hidden;
}

.dialpad.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    /* margin-bottom: 12px; */
}

.dialpad-btn {
    background: #f1f3f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.dialpad-btn:hover {
    background: #e9ecef;
    border-color: #2563eb;
}

.dialpad-btn:active {
    transform: scale(0.95);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.btn-mute {
    background: #2563eb;
    color: white;
}

.btn-mute:hover {
    background: #1d4ed8;
}

.btn-mute.active {
    background: #dc2626;
}

.btn-end {
    background: #fee;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-end:hover {
    background: #dc2626;
    color: white;
}

.toggle-dialpad {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    margin-top: 1rem;
}

.toggle-dialpad:hover {
    background: #1d4ed8;
    color: white;
}

@media (max-height: 700px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .section {
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .dialpad-btn {
        padding: 10px;
        font-size: 16px;
    }

    .header {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .manage-call-buttons {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 10px;
    }
}

footer {
    text-align: center;
    background: #808285;
    color: white;
    padding: 10px;
    bottom: 0;
}


.generateCallBtn:disabled {
    background-color: #cccccc;
    /* Light gray background */
    color: #666666;
    /* Dimmed text */
    cursor: not-allowed;
    /* Shows disabled cursor */
    opacity: 0.7;
    /* Slight transparency */
    transition: background-color 0.3s ease;
}


#callStatusContainer {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Optional spacing between elements */
}