/**
 * DailyBuddy Module Settings - Zentrale Styles
 */

/* ============================================
   GENERAL / SHARED STYLES
   ============================================ */

/* Settings Form Container */
.dailybuddy-settings-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Info & Warning Boxes */
.info-box,
.warning-box {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 4px;
}

.info-box {
    background: #e7f5fe;
    border-left: 4px solid #2271b1;
}

.warning-box {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
}

.info-box h3,
.warning-box h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.info-box .dashicons {
    color: #2271b1;
}

.warning-box .dashicons {
    color: #dba617;
}

.info-box ul,
.warning-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.info-box li,
.warning-box li {
    margin: 5px 0;
}

.warning-box p {
    margin: 5px 0 0 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

.badge-green {
    background: #d5f5dd;
    color: #00612b;
}

.badge-red {
    background: #fcf0f1;
    color: #d63638;
}

.badge-blue {
    background: #e7f5fe;
    color: #0a5b8c;
}

/* ============================================
   UNDER CONSTRUCTION MODULE
   ============================================ */

/* Custom CSS Editor Styling */
.dailybuddy-under-construction-settings .CodeMirror {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    min-height: 240px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    /* dunkel */
}

.dailybuddy-under-construction-settings .CodeMirror-gutters {
    background: #dcdcde;
    border-right: 1px solid #1e293b;
}

.dailybuddy-under-construction-settings .CodeMirror-linenumber {
    color: #64748b;
}

.dailybuddy-under-construction-settings .CodeMirror-cursor {
    border-left: 2px solid #38bdf8;
}

.dailybuddy-css-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbd5f5;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px 8px 0 0;
    margin-bottom: -8px;
}


.dailybuddy-under-construction-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dailybuddy-under-construction-settings h1 .dashicons {
    color: #2271b1;
}

/* Tabs Navigation */
.dailybuddy-uc-tabs {
    display: flex;
    gap: 0;
    margin: 20px 0;
    border-bottom: 2px solid #dcdcde;
}

.dailybuddy-uc-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #50575e;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.dailybuddy-uc-tab:hover {
    color: #91CE00;
}

.dailybuddy-uc-tab.active {
    color: #91CE00;
    border-bottom-color: #91CE00;
}

.dailybuddy-uc-tab i {
    margin-right: 8px;
}

/* Tab Content */
.dailybuddy-uc-tab-content {
    display: none;
    padding: 30px 0;
}

.dailybuddy-uc-tab-content.active {
    display: block;
}

/* Layout Preview Grid */
.layout-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.layout-preview {
    position: relative;
    width: 100%;
    height: 140px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.layout-preview:hover {
    border-color: #91CE00;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.layout-preview.selected {
    border-color: #91CE00;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.layout-preview input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.layout-preview-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.layout-preview.selected .layout-preview-label {
    background: #91CE00;
}

/* Switch Toggle */
.dailybuddy-uc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.dailybuddy-uc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dailybuddy-uc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.dailybuddy-uc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.dailybuddy-uc-slider {
    background-color: #91CE00;
}

input:checked+.dailybuddy-uc-slider:before {
    transform: translateX(26px);
}

/* Settings Row */
.dailybuddy-uc-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f1;
}

.dailybuddy-uc-setting-row:last-child {
    border-bottom: none;
}

.dailybuddy-uc-setting-info {
    flex: 1;
}

.dailybuddy-uc-setting-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}

.dailybuddy-uc-setting-info p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.dailybuddy-uc-setting-control {
    margin-left: 20px;
}

/* Media Upload */
.dailybuddy-uc-image-preview {
    margin-top: 10px;
    max-width: 300px;
}

.dailybuddy-uc-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

/* Social Media Icons */
.dailybuddy-uc-social-icon {
    font-size: 18px;
    color: #91CE00;
    margin-right: 8px;
}

/* ============================================
   DASHBOARD ACCESS MODULE
   ============================================ */

.dailybuddy-dashboard-access-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dailybuddy-dashboard-access-settings h1 .dashicons {
    color: #2271b1;
}

.roles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-checkbox:hover {
    background: #fff;
    border-color: #2271b1;
}

.role-checkbox input[type="checkbox"] {
    margin: 0;
}

.role-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.role-checkbox.admin-role {
    background: #e7f5fe;
    border-color: #2271b1;
}

.role-name {
    font-weight: 500;
    flex: 1;
}

.admin-badge {
    font-size: 11px;
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   AI BOT BLOCKER MODULE
   ============================================ */
.copy-legal-btn .dashicons {
    margin-top: 5px;
}

.dailybuddy-ai-bot-blocker-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dailybuddy-ai-bot-blocker-settings h1 .dashicons {
    color: #2271b1;
}

/* Status Card */
.status-card {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.status-item {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.status-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2271b1;
}

.status-icon {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.status-icon.active {
    color: #00a32a;
}

.status-icon.inactive {
    color: #dcdcde;
}

.status-label {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #50575e;
}

/* Settings Sections */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dcdcde;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h2 {
    margin-top: 0;
}

/* Bots Grid */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.bot-card {
    display: block;
    padding: 15px;
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bot-card:hover {
    background: #fff;
    border-color: #2271b1;
}

.bot-card.selected {
    background: #e7f5fe;
    border-color: #2271b1;
}

.bot-card input[type="checkbox"] {
    margin-right: 10px;
}

.bot-info {
    margin-left: 25px;
}

.bot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.bot-company {
    font-size: 12px;
    color: #646970;
    margin-bottom: 5px;
}

.bot-description {
    font-size: 13px;
    color: #50575e;
    margin-bottom: 8px;
}

.bot-useragent {
    margin-top: 8px;
}

.bot-useragent code {
    font-size: 11px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
}

/* Bulk Actions */
.bulk-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Method Options */
.method-option {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 10px;
}

.method-option.disabled {
    opacity: 0.6;
    background: #f0f0f1;
}

.method-option input[type="checkbox"] {
    margin-top: 3px;
}

.method-info strong {
    display: block;
    margin-bottom: 5px;
}

.method-info .description {
    margin: 5px 0;
}

.method-info .badge {
    margin-right: 5px;
}

/* Legal Text Box */
.legal-text-box {
    margin: 15px 0;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.legal-text-box h3 {
    margin-top: 0;
}

.legal-text-box textarea {
    width: 100%;
    font-family: monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    resize: vertical;
}

.copy-legal-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   CUSTOM LOGIN URL MODULE
   ============================================ */

.dailybuddy-custom-login-url-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dailybuddy-custom-login-url-settings h1 .dashicons {
    color: #d63638;
}

/* Copy URL Button */
.copy-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-url-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Warning Box - Red Variant */
.warning-box.red {
    background: #fcf0f1;
    border-left-color: #d63638;
}

.warning-box.red h3 {
    color: #d63638;
}

.warning-box.red .dashicons {
    color: #d63638;
}

.warning-box code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Form Table Adjustments */
.form-table th {
    width: 200px;
}

.form-table input[type="text"].regular-text {
    width: 300px;
}

/* ============================================
   CONTENT FOLDERS MODULE - Settings Styles
   ============================================ */

.dailybuddy-content-folders-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dailybuddy-content-folders-settings h1 .dashicons {
    color: #2271b1;
}

/* Color Picker Group */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
}

.color-picker-group .color-text {
    max-width: 120px;
}