/* Centering container and setting fixed width */
#rtd-form {
    width: 550px !important; /* Fixed width for the form */
}

.centered-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Align items at the top */
    min-height: 100vh; /* Full height of the viewport */
    flex-direction: column; /* Stack children vertically */
    
}

.rtd-plugin-cards {
    width: 500px !important; /* Fixed width for cards */
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 10px; /* Space between cards */
    margin-top: 20px; /* Space above the cards */
}

.rtd-plugin-card {
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 4px; /* Slightly increase border radius for a softer look */
    padding: 10px; /* Inner padding for cards */
    background-color: #fff; /* White background */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transitions for hover effects */
    width: 100% !important; /* Full width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.rtd-plugin-card.active {
    border-color: #28a745; /* Green border for active card */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2); /* Soft green shadow */
}
.rtd-plugin-card.inactive {
    border-color: #ddd; /* Green border for active card */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.rtd-plugin-header {
    display: flex; /* Flex layout for header */
    justify-content: space-between; /* Space between label and switch */
    align-items: center; /* Center items vertically */
    margin-bottom: 5px; /* Space below the header */
}

.rtd-plugin-message {
    display: none; /* Initially hidden; control visibility via JS */
    color: red; /* Red color for error messages */
    font-weight: bold; /* Bold text */
    margin-top: 10px; /* Space above message */
}

/* Toggle Switch Styling */
.switch {
    position: relative; /* For absolute positioning of slider */
    display: inline-block; /* Inline-block for layout */
    width: 34px; /* Width of the switch */
    height: 20px; /* Height of the switch */
}

.switch input {
    opacity: 0; /* Hide the default checkbox */
    width: 0; /* No width */
    height: 0; /* No height */
}

.slider {
    position: absolute; /* Positioned relative to the switch */
    cursor: pointer; /* Pointer cursor for interaction */
    top: 0; /* Align to top */
    left: 0; /* Align to left */
    right: 0; /* Align to right */
    bottom: 0; /* Align to bottom */
    background-color: #ccc; /* Default background color */
    transition: 0.4s; /* Smooth transition */
    border-radius: 34px; /* Rounded corners */
}

.slider:before {
    position: absolute; /* Positioned relative to the slider */
    content: ""; /* Empty content for the knob */
    height: 14px; /* Height of the knob */
    width: 14px; /* Width of the knob */
    left: 3px; /* Space from the left */
    bottom: 3px; /* Space from the bottom */
    background-color: white; /* White knob */
    transition: 0.4s; /* Smooth transition for knob movement */
    border-radius: 50%; /* Circular knob */
}

input:checked + .slider {
    background-color: #28a745; /* Change background when checked */
}

input:checked + .slider:before {
    transform: translateX(14px); /* Move knob to the right when checked */
}
