/* Global Styles */


/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark translucent background */
    overflow: auto;
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.modal-content {
    background: linear-gradient(145deg, #2c3e50, #34495e); /* Sleek gradient background */
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 70%;
    max-width: 650px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    animation: scaleIn 0.4s ease-in-out;
}

/* Scale-in animation */
@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c; /* Red hover effect */
}

/* Error Message (Alert Style) */
#errorMessage {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Button Styling */
button {
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #2980b9;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
}

/* Button for manual connection */
#connectButton {
    background-color: #3498db;
    color: white;
    padding: 14px 25px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

#connectButton:hover {
    background-color: #2980b9;
}

/* Tab Container and Tabs */
.tab-container {
    margin-top: 30px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #34495e;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.tab-button.active {
    background-color: #3498db;
}

.tab-button:hover {
    background-color: #2c3e50;
}

/* Form Fields */
textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #34495e;
    background-color: #f4f4f4;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s ease;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    background-color: #e3f2fd;
    outline: none;
}

/* Small Text Styling */
.small-text {
    font-size: 14px;
    color: #7f8c8d;
}

/* Style for the toggle switch container */
.toggle-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;  /* Reduce space between each toggle switch */
}

/* Style for the toggle switch itself */
.switch {
    position: relative;
    display: inline-block;
    width: 35px; /* 30% smaller than original 42px */
    height: 18px; /* 30% smaller than original 24px */
    margin-right: 8px; /* Reduce gap between switch and text */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;  /* 30% smaller than original 18px */
    width: 12px;   /* 30% smaller than original 18px */
    border-radius: 50%;
    left: 3px;     /* Adjust for smaller size */
    bottom: 3px;   /* Adjust for smaller size */
    background-color: white;
    transition: 0.4s;
}

/* When the checkbox is checked, change the background to green */
input:checked + .slider {
    background-color: #4CAF50;
}

/* Move the slider when checked */
input:checked + .slider:before {
    transform: translateX(17px); /* Adjust for smaller size */
}

/* The round slider */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Style for the switch label text next to the toggle */
.switch-label {
    font-size: 12px;  /* Slightly smaller font-size for better alignment */
    font-weight: bold;
    color: white;        /* Set the text color to white */
    align-self: center;  /* Align text vertically in the middle */
}

/* Responsive styling for mobile devices */
@media screen and (max-width: 600px) {
    .toggle-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for small screens */
        gap: 5px;  /* Reduced space between columns */
    }

    .switch-label {
        font-size: 10.4px;  /* Increase font-size by 15% on mobile */
    }

    .switch {
        width: 34.5px;  /* Increase width by 15% on mobile (30px * 1.15) */
        height: 18.4px; /* Increase height by 15% on mobile (16px * 1.15) */
    }

    .slider:before {
        height: 11.5px; /* Increase size by 15% (10px * 1.15) */
        width: 11.5px;  /* Increase size by 15% (10px * 1.15) */
    }

    input:checked + .slider:before {
        transform: translateX(19px); /* Adjust translation for increased size */
    }
}
.alert-box {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 0.9em; /* Makes the text smaller */
}