/* Settings Modal Styles */
.settings-area {
    margin: 10px 0;
    text-align: center;
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% 0 0 10%;
    padding: 0;
    border: none;
    border-radius: 1rem;
    width: 80%;
    max-width: 340px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 6px 12px rgba(0,0,0,0.05), 0 0 0 1px rgba(255,255,255,0.08) inset;
    animation-name: slideInLeft;
    animation-duration: 0.3s;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* The Close Button */
.closeModal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.closeModal:hover,
.closeModal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    padding: 14px 16px;
    background-color: #fcfcfd;
    border-bottom: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 12px 16px;
    background-color: #fcfcfd;
    border-top: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.02);
}

#saveSettings {
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 0.25rem;
    line-height: 3;
    height: auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Animations */
@keyframes slideIn {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@keyframes slideInLeft {
    from {transform: translateX(-50px); opacity: 0}
    to {transform: translateX(0); opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

/* Phone Settings Button */
.phone-settings-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    transform: scale(0.95);
}

.phoneWrapper:hover .phone-settings-btn {
    opacity: 1;
    transform: scale(1);
}

.phone-settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.phone-settings-btn ion-icon {
    font-size: 20px;
    color: #333;
}
