/* Container and Layout */
.access-defender-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: stretch;
}

.access-defender-main {
    flex: 1 1 60%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.access-defender-sidebar {
    flex: 1 1 35%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

/* Card Styling */
.access-defender-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.access-defender-main .access-defender-card:last-child,
.access-defender-sidebar .access-defender-card:last-child {
    margin-bottom: 0;
    height: 100%;
}

.access-defender-card h1,
.access-defender-card h3 {
    margin-top: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    color: #1d2327;
}

/* Switch Slider Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.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: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Developer Profile Styling */
.developer-profile {
    text-align: center;
    padding-bottom: 24px;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2196F3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.developer-name {
    font-size: 1.4em;
    margin: 0 0 16px 0;
    color: #1d2327;
    font-weight: 600;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Social Links Styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f1;
    color: #1d2327;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px;
}

.social-link:hover {
    background-color: #2196F3;
    color: #ffffff;
    transform: translateY(-2px);
}

.social-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Quick Links Styling */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2271b1;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f0f0f1;
}

.quick-link:hover {
    background-color: #2196F3;
    color: #ffffff;
    transform: translateX(4px);
}

.quick-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Form Elements Styling */
.form-table {
    margin: 0;
    width: 100%;
}

.form-table th {
    padding: 20px 10px 20px 0;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table select,
.form-table textarea,
.wp-editor-container {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.wp-editor-tabs button {
    border-radius: 4px 4px 0 0;
}

.notice, div.updated, div.error {
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
}

.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus,
.form-table select:focus,
.form-table textarea:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 1px #2196F3;
    outline: none;
}

.submit {
    margin-top: 20px;
    padding: 0;
}

/* Description Text */
.description {
    color: #646970;
    font-size: 13px;
    margin: 4px 0 0;
    font-style: italic;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .access-defender-card {
        background: #2c3338;
        color: #ffffff;
    }

    .access-defender-card h1,
    .access-defender-card h3,
    .developer-name {
        color: #ffffff;
        border-bottom-color: #1d2327;
    }

    .social-link {
        background-color: #1d2327;
        color: #ffffff;
    }

    .quick-link {
        background-color: #1d2327;
        color: #2196F3;
    }

    .quick-link:hover {
        background-color: #2196F3;
        color: #ffffff;
    }

    .form-table input[type="text"],
    .form-table input[type="number"],
    .form-table select,
    .form-table textarea {
        background-color: #2c3338;
        color: #ffffff;
        border-color: #3c434a;
    }

    .description {
        color: #a7aaad;
    }

    .slider {
        background-color: #3c434a;
    }

    .slider:before {
        background-color: #ffffff;
    }
}

/* Button Styling */
.access-defender-container .access-defender-card .access-defender-submit {
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
}

.access-defender-container .access-defender-card .access-defender-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
    background: linear-gradient(135deg, #1976D2, #2196F3);
    color: white;
}
/* Responsive Design */
@media screen and (max-width: 782px) {
    .access-defender-container {
        flex-direction: column;
    }
    
    .access-defender-main,
    .access-defender-sidebar {
        flex: 1 1 100%;
    }
    
    .form-table th {
        padding: 10px 0;
    }
    
    .developer-profile {
        padding-bottom: 20px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .developer-name {
        font-size: 1.2em;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-links {
        gap: 12px;
    }

    .quick-link {
        padding: 10px;
    }

    .access-defender-card {
        height: auto;
    }

    .form-table input[type="text"],
    .form-table input[type="number"],
    .form-table select,
    .form-table textarea {
        max-width: 100%;
    }

    .switch {
        width: 52px;
        height: 30px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }
}
