/* Admin Styles for Disable Right Click & Content Copy Protection */

.disable-right-click-content-copy-protection-admin-wrap {
    max-width: 1200px;
}

.disable-right-click-content-copy-protection-admin-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.disable-right-click-content-copy-protection-form {
    flex: 2;
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.disable-right-click-content-copy-protection-info-box {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    height: fit-content;
}

.disable-right-click-content-copy-protection-info-box h3 {
    margin-top: 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.disable-right-click-content-copy-protection-info-box ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.disable-right-click-content-copy-protection-info-box li {
    margin: 8px 0;
    color: #50575e;
    font-size: 14px;
}

/* Toggle Switch Styles */
.disable-right-click-content-copy-protection-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.disable-right-click-content-copy-protection-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.disable-right-click-content-copy-protection-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.disable-right-click-content-copy-protection-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .disable-right-click-content-copy-protection-slider {
    background-color: #0073aa;
}

input:focus + .disable-right-click-content-copy-protection-slider {
    box-shadow: 0 0 1px #0073aa;
}

input:checked + .disable-right-click-content-copy-protection-slider:before {
    transform: translateX(26px);
}

/* Keyboard Shortcuts Section Styles */
.disable-right-click-content-copy-protection-keyboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
}

.disable-right-click-content-copy-protection-keyboard-shortcut {
    font-family: 'Courier New', Courier, monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    min-width: 120px;
    text-align: center;
    border: 1px solid #ced4da;
}

.disable-right-click-content-copy-protection-keyboard-item .description {
    margin: 0;
    flex: 1;
}

/* Checkbox Labels */
.disable-right-click-content-copy-protection-checkbox-label {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d2327;
}

.disable-right-click-content-copy-protection-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Form Table Adjustments */
.disable-right-click-content-copy-protection-form .form-table th {
    width: 200px;
    padding-left: 0;
    font-weight: 600;
    color: #1d2327;
}

.disable-right-click-content-copy-protection-form .form-table td {
    padding-left: 0;
}

.disable-right-click-content-copy-protection-form .form-table .description {
    margin-top: 8px;
    font-style: italic;
    color: #646970;
}

/* Submit Button */
.disable-right-click-content-copy-protection-form .submit {
    padding-left: 0;
    margin-top: 20px;
}

/* Admin Notice Styles */
.disable-right-click-content-copy-protection-admin-notice {
    border-left-color: #00a32a;
}

.disable-right-click-content-copy-protection-admin-notice p {
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 960px) {
    .disable-right-click-content-copy-protection-admin-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .disable-right-click-content-copy-protection-form,
    .disable-right-click-content-copy-protection-info-box {
        flex: none;
    }

    .disable-right-click-content-copy-protection-keyboard-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .disable-right-click-content-copy-protection-keyboard-shortcut {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .disable-right-click-content-copy-protection-checkbox-label {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .disable-right-click-content-copy-protection-form .form-table th,
    .disable-right-click-content-copy-protection-form .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .disable-right-click-content-copy-protection-form .form-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

/* Settings Section */
.disable-right-click-content-copy-protection-form h2 {
    color: #1d2327;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

/* Success Message Styling */
.notice.notice-success {
    border-left-color: #00a32a;
}

/* Version Styling */
.disable-right-click-content-copy-protection-admin-wrap h1 sup {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    margin-left: 5px !important;
}

/* Color Picker Styling */
.disable-right-click-content-copy-protection-color-picker {
    width: 50px;
    height: 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    vertical-align: middle;
}

.disable-right-click-content-copy-protection-color-text {
    width: 100px;
    vertical-align: middle;
    text-align: center;
    font-family: monospace;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 6px 8px;
}

/* Notification Preview Styling */
.disable-right-click-content-copy-protection-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.disable-right-click-content-copy-protection-preview h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1d2327;
}

.disable-right-click-content-copy-protection-message-preview {
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

/* Textarea Styling */
.disable-right-click-content-copy-protection-form textarea {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
}

.disable-right-click-content-copy-protection-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Tab Navigation */
.disable-right-click-content-copy-protection-nav-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
}

.disable-right-click-content-copy-protection-nav-tabs .nav-tab {
    background: #f9f9f9;
    border: 1px solid #c3c4c7;
    color: #50575e;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    margin-right: 5px;
    position: relative;
    top: 1px;
}

.disable-right-click-content-copy-protection-nav-tabs .nav-tab:hover {
    background: #fff;
    color: #1d2327;
}

.disable-right-click-content-copy-protection-nav-tabs .nav-tab.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    color: #1d2327;
}

/* Custom Menu Specific Styles */
.disable-right-click-content-copy-protection-custom-menu-content {
    margin-top: 20px;
}

.disable-right-click-content-copy-protection-custom-menu-settings {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Menu Item Controls */
.disable-right-click-content-copy-protection-menu-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.menu-item-controls {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.menu-item-controls label {
    font-weight: 600;
    color: #1d2327;
    white-space: nowrap;
}

.menu-item-controls input[type="text"],
.menu-item-controls input[type="url"],
.menu-item-controls select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.menu-item-controls input[type="text"]:focus,
.menu-item-controls input[type="url"]:focus,
.menu-item-controls select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.remove-menu-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-menu-item:hover {
    background: #c82333;
}

/* Add Menu Item Button */
#add-menu-item {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 20px;
}

#add-menu-item:hover {
    background: #218838;
}

/* Custom Menu Preview Styling */
.disable-right-click-content-copy-protection-custom-menu-preview-container {
    padding: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 200px;
    min-width: 150px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
}

.custom-menu-item-preview {
    transition: background-color 0.2s ease;
}

.custom-menu-item-preview:last-child {
    border-bottom: none !important;
}

/* Responsive Design for Custom Menu Admin */
@media (max-width: 960px) {
    .disable-right-click-content-copy-protection-custom-menu-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .disable-right-click-content-copy-protection-custom-menu-settings,
    .disable-right-click-content-copy-protection-custom-menu-preview {
        flex: none;
    }
    
    .menu-item-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .menu-item-controls label {
        margin-bottom: 5px;
    }
}

/* Form Adjustments for Custom Menu */
.disable-right-click-content-copy-protection-custom-menu-form .form-table th {
    width: 200px;
    padding-left: 0;
    font-weight: 600;
    color: #1d2327;
}

.disable-right-click-content-copy-protection-custom-menu-form .form-table td {
    padding-left: 0;
}