/**
 * Luzid WP Tools - Shared CSS
 * Design System with .lcs-* prefix
 * Version: 1.0.0
 */

/* Prevent other plugins from injecting notices into our header */
.lcs-header .notice,
.lcs-header .updated,
.lcs-header .error,
.lcs-header .update-nag,
.lcs-header .notice-error,
.lcs-header .notice-warning,
.lcs-header .notice-success,
.lcs-header .notice-info {
    display: none !important;
}

/* Also hide them if they're injected after h1 */
.lcs-header-left > .notice,
.lcs-header-left > .updated,
.lcs-header-left > .error,
.lcs-header-title ~ .notice,
.lcs-header-title ~ .updated,
.lcs-header-title ~ .error {
    display: none !important;
}

/* Container */
.lcs-wrap {
    max-width: 1200px;
    margin: 20px 0 80px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Header */
.lcs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

.lcs-header-left h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 400;
    color: #1d2327;
}

.lcs-header-left .lcs-version-info {
    font-size: 13px;
    color: #646970;
    margin: 0;
}

.lcs-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Language Switcher */
.lcs-lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lcs-lang-switcher a {
    display: inline-block;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lcs-lang-switcher a:hover {
    opacity: 1;
}

.lcs-lang-switcher a.active {
    opacity: 1;
    font-weight: bold;
}

.lcs-lang-switcher img {
  width: 30px;
  height: 30px;
  display: block;
  border: 0px;
  border-radius: 0px;
}


/* Tabs Navigation */
.lcs-tabs-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: left;
  background: #f9f9f9;
  border-bottom: 1px solid #ccd0d4;
  padding: 0px 54px 0px 0px;
}

.lcs-tabs-nav__left {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
}

.lcs-tabs-nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.lcs-logo {
  display: flex;
  align-items: center;
}

.lcs-logo-img {
  height: 60px;
  width: auto;
  display: block;
}


.lcs-tab-link {
  padding: 12px 20px;
  background: none;
  border: 1px solid #e8e8e8;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: #50575e;
  text-decoration: none;
  transition: all 0.2s;
  margin-right: -1px;
}

.lcs-tab-link:hover {
    color: #2271b1;
    background: rgba(34, 113, 177, 0.04);
}

.lcs-tab-link.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 500;
}

/* Tab Content */
.lcs-tab-content {
    display: none;
    padding: 30px;
}

.lcs-tab-content.active {
    display: block;
}

/* Form Elements */
.lcs-form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px 0;
}

.lcs-form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    text-align: left;
    font-weight: 600;
    vertical-align: top;
    color: #1d2327;
}

.lcs-form-table td {
    padding: 15px 10px;
}

.lcs-form-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.lcs-form-table input[type="text"], .lcs-form-table input[type="url"], .lcs-form-table input[type="password"], .lcs-form-table input[type="number"], .lcs-form-table input[type="time"], .lcs-form-table textarea, .lcs-form-table select {
  width: auto;
  max-width: 500px;
  padding: 0px 12px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  line-height: 2px;
  color: #2c3338;
}

.lcs-form-table input[type="text"]:focus,
.lcs-form-table input[type="url"]:focus,
.lcs-form-table input[type="password"]:focus,
.lcs-form-table input[type="number"]:focus,
.lcs-form-table input[type="time"]:focus,
.lcs-form-table textarea:focus,
.lcs-form-table select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.lcs-form-table textarea {
    min-height: 100px;
    font-family: monospace;
}

.lcs-description {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Checkboxes */
.lcs-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcs-checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Buttons */
.lcs-button {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.lcs-button:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.lcs-button:disabled {
    background: #c3c4c7;
    border-color: #c3c4c7;
    cursor: not-allowed;
}

.lcs-button-secondary {
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.lcs-button-secondary:hover {
    background: #f6f7f7;
    color: #135e96;
    border-color: #135e96;
}

.lcs-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Notices */
.lcs-notice {
    padding: 12px 15px;
    margin: 20px 0 80px 0;
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
    border-radius: 0 3px 3px 0;
}

.lcs-notice.success {
    border-left-color: #00a32a;
    background: #edfaef;
}

.lcs-notice.error {
    border-left-color: #d63638;
    background: #fcf0f1;
}

.lcs-notice.warning {
    border-left-color: #dba617;
    background: #fcf9e8;
}

.lcs-notice p {
    margin: 0;
    font-size: 14px;
}

/* Log Display */
.lcs-log-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.lcs-log-container .log-error {
    color: #f48771;
}

.lcs-log-container .log-warning {
    color: #dcdcaa;
}

.lcs-log-container .log-info {
    color: #4fc1ff;
}

.lcs-log-container .log-success {
    color: #4ec9b0;
}

/* Source Configuration */
.lcs-source-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fafafa;
}

.lcs-source-item.disabled {
    opacity: 0.6;
    background: #f0f0f0;
}

.lcs-source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lcs-source-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
}

.lcs-source-fields {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.lcs-source-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
}

.lcs-source-field input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
}

/* Overlay / Modal */
.lcs-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.lcs-overlay.active {
    display: flex;
}

.lcs-overlay-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lcs-overlay-content h2 {
    margin-top: 0;
    color: #1d2327;
}

.lcs-progress-bar {
    width: 100%;
    height: 24px;
    background: #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.lcs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.lcs-status-message {
    padding: 10px;
    margin: 10px 0;
    background: #f0f6fc;
    border-radius: 4px;
    font-size: 14px;
}

/* How-To Content */
.lcs-howto-content {
    line-height: 1.8;
}

.lcs-howto-content h2 {
    font-size: 22px;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    color: #1d2327;
}

.lcs-howto-content h3 {
    font-size: 18px;
    margin: 25px 0 12px 0;
    color: #2c3338;
}

.lcs-howto-content h4 {
    font-size: 16px;
    margin: 20px 0 10px 0;
    color: #2c3338;
}

.lcs-howto-content h5 {
    font-size: 14px;
    margin: 15px 0 8px 0;
    color: #50575e;
}

.lcs-howto-content p {
    margin: 10px 0;
    color: #2c3338;
}

.lcs-howto-content code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63638;
}

.lcs-howto-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.lcs-howto-content ul,
.lcs-howto-content ol {
    margin: 10px 0 10px 25px;
}

.lcs-howto-content li {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lcs-wrap {
        margin: 10px;
    }
    
    .lcs-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .lcs-tabs-nav {
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .lcs-tab-content {
        padding: 15px;
    }
    
    .lcs-form-table th,
    .lcs-form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .lcs-form-table th {
        padding-bottom: 5px;
    }
    
    .lcs-button-group {
        flex-direction: column;
    }
}


/* =========================================================
   Luzid Content Scheduler – Additions (keeps Design System)
   ========================================================= */

.lcs-codeline{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    margin: 8px 0;
}
.lcs-codeline code {
  display: inline-block;
  padding: 1px 6px;
  background: #DCDCDC;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #000;
}
.lcs-copy-btn{
    padding: 6px 10px;
    min-width: 38px;
}
.lcs-copy-btn.active,
.lcs-copy-btn.is-copied{
    /* JS toggles .active on tabs; for copy we toggle is-copied; keep harmless */
}
.lcs-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.lcs-pill--active{
    background:#edfaef;
    color:#00a32a;
    border:1px solid rgba(0,163,42,.25);
}
.lcs-pill--inactive {
  color: #d63638;
}

/* simple table for repeaters (Termine/Wiederholungen/Ausnahmen) */
.lcs-table {
  width: auto;
  border-collapse: collapse;
  margin: 10px 0 30px 0;
}
.lcs-table th, .lcs-table td{
    padding:10px;
    text-align:left;
    vertical-align:top;
    border-bottom:1px solid #f0f0f1;
    font-size:14px;
}

/* Bugfix #16: allow inherited vertical alignment for cells */
.lcs-table td{
    vertical-align: inherit;
}
.lcs-table th{
    font-weight:600;
    color:#1d2327;
    white-space:nowrap;
}
.lcs-table input[type="text"],
.lcs-table input[type="number"],
.lcs-table input[type="time"],
.lcs-table select{
    width:auto;
    max-width:220px;
}

/* make selected entry subtle */
.lcs-source-item.is-selected{
    border-color:#2271b1;
    box-shadow: 0 0 0 1px rgba(34,113,177,.15);
}


/* =========================================================
   Luzid Content Scheduler: Ergänzungen v1.0.4
   (nur Layout/Komfort – Farben/Design bleiben im Luzid-UI-Stil)
   ========================================================= */

/* Buttons: allow using modifier classes without .lcs-button base (wie Forms-to-Dataverse) */
.lcs-button-secondary:not(.lcs-button):not(.lcs-copy-btn),
.lcs-button-danger:not(.lcs-button):not(.lcs-copy-btn){
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    background: #fff;
}

.lcs-button-secondary:not(.lcs-button){
    color: #2271b1;
    border-color: #2271b1;
}
.lcs-button-secondary:not(.lcs-button):hover{
    background: #f6f7f7;
    color:#135e96;
    border-color:#135e96;
}

.lcs-button-danger{
    background:#d63638;
    border:1px solid #d63638;
    color:#fff;
}
.lcs-button-danger:hover{
    background:#b32d2e;
    border-color:#b32d2e;
    color:#fff;
}

.lcs-btn-icon{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.lcs-btn-icon .dashicons{
    line-height: 1.2;
    margin-top: 1px;
}

/* Entries list layout */
.lcs-entry-top{
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.lcs-entry-top-left{
    min-width: 240px;
}
.lcs-entry-title{
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 4px;
}
.lcs-entry-preview{
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}
.lcs-entry-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-shrink: 0;
}
.lcs-entry-bottom{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    align-items:center;
}
.lcs-codeline--tight{
    margin: 0;
}


/* Copy buttons (icon-only) */
.lcs-copy-btn{
    padding: 0 6px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: auto !important;
}
.lcs-copy-btn .dashicons{
    line-height: 1.2;
}

.lcs-entry-actions .lcs-button-danger{
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}


/* === LCS Content Scheduler overrides (v1.0.6) === */

/* Delete button: wie "Bearbeiten", nur rot */
.lcs-button-danger:not(.lcs-button){
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #b32d2e;
    color: #b32d2e;
    background: #fff;
}
.lcs-button-danger:not(.lcs-button):hover{
    background: #f6f7f7;
    color:#8a2424;
    border-color:#8a2424;
}

/* Copy buttons: wieder schlank (icon-only) */
.lcs-copy-btn{
    padding: 2px 6px;
    min-width: unset;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.lcs-copy-btn:hover{
    background: #f0f0f1 !important;
}

/* Code styling wie gewünscht */
.lcs-codeline code {
  display: inline-block;
  padding: 1px 6px;
  background: #ddd;
  border-radius: 7px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #1d2327;
}

.lcs-code-label{
    font-size: 13px;
    color: #50575e;
    margin-right: 6px;
}

/* ====== Luzid Content Scheduler ====== */
.lcs-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 4px;
}

/* Recurring details: keep labels/fields vertically centered */
.lcs-rec-details .lcs-inline-inputs {
    align-items: baseline;
}

.lcs-inline-inputs{
  display: inline-flex;
  gap: 10px;
}


/* === LCS overrides (Content Scheduler) === */
.lcs-button-secondary:not(.lcs-button):not(.lcs-copy-btn),
.lcs-button-danger:not(.lcs-button):not(.lcs-copy-btn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #2271b1;
  background: #fff;
}

.lcs-button-danger:not(.lcs-button) {
  cursor: pointer;
  font-size: 14px;
  color: #b32d2e;
  border: 1px solid #b32d2e !important;
}

.lcs-notice.lcs-notice--dismissable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lcs-notice .lcs-notice__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}


/* === LCS Bugfixes v1.0.10 === */
.dashicons, .dashicons-before::before {
  font-family: dashicons;
  display: inline;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 20px;
  height: 20px;
  font-size: 20px;
  vertical-align: top;
  text-align: -moz-center;
  transition: color .1s ease-in;
  transform: translateY(-2px);
}

/* Copy icon buttons – per Bugfix #16 */
.lcs-copy-btn {
  padding: 0 6px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: auto !important;
  text-decoration: none;
}

.lcs-inline-inputs{
  display: inline-flex;
  gap: 10px;
}

.lcs-button {
  display: inline-flex;
  padding: 8px 16px;
  background: #2271b1;
  color: #fff;
  border: 1px solid #2271b1;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
  align-items: center;
}

.lcs-button-secondary:not(.lcs-button):hover {
  background: #ebebeb !important;
  color: #135e96;
}

/* Code-Stil gemäß Vorgabe */
.lcs-codeline code {
  display: inline-block;
  padding: 1px 6px;
  background: #DCDCDC;
  border-radius: 2px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #000;
}


.lcs-button-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #2271b1;
  background: #fff;
  min-height: 30px;
  color: #2271b1;
}

.lcs-button-delete {
  color: #b32d2e !important;
  border: 1px solid #b32d2e !important;
}

/* Language switcher buttons (used by multiple Luzid plugins) */
.lcs-btn {
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  color: #696969;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.lcs-btn:hover { background: #f0f0f1; }
.lcs-btn--ghost {
  background: #4dbcf0;
  border-color: #1d5f99;
  color: #000;
  padding: 6px 6px;
  font-size: 11px;
}
.lcs-btn--lang.is-active {
  background: #2271b1;
  border-color: #1d5f99;
  color: #fff;
}
.lcs-btn__icon { font-size: 16px; }

/* How-To formatting */
.luzid-howto {
  line-height: 1.6;
}

.luzid-howto .lcs-howto-section {
  margin: 30px 0;
}

.luzid-howto .lcs-howto-section h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1d2327;
}

.luzid-howto .lcs-howto-section p,
.luzid-howto .lcs-howto-section ul,
.luzid-howto .lcs-howto-section ol {
  margin: 8px 0;
}

.luzid-howto .lcs-howto-section ul,
.luzid-howto .lcs-howto-section ol {
  padding-left: 22px;
}

.luzid-howto .lcs-callout {
  background: #f0f6fc;
  border: 1px solid #c3d9f2;
  padding: 12px 14px;
  border-radius: 3px;
  margin: 12px 0;
}

.luzid-howto .lcs-callout--warn {
  background: #fcf0f1;
  border-color: rgba(214,54,56,.25);
}

.luzid-howto code {
  background: #DCDCDC;
  border-radius: 2px;
  padding: 1px 6px;
}

/* --- Overlay Modals (success / warning / error) --- */
.lcs-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.lcs-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lcs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.lcs-modal__panel {
  position: relative;
  max-width: 560px;
  width: calc(100% - 40px);
  margin: 0;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #c3c4c7;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  padding: 18px 18px 14px;
}

.lcs-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 10px 0;
}

.lcs-modal__title .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.lcs-modal__body {
  font-size: 14px;
  color: #2c3338;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.lcs-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lcs-modal--success .lcs-modal__panel { border-color: rgba(0,163,42,.35); }
.lcs-modal--warning .lcs-modal__panel { border-color: rgba(219,166,23,.35); }
.lcs-modal--error .lcs-modal__panel { border-color: rgba(214,54,56,.45); }

.lcs-modal--success .lcs-modal__title .dashicons { color: #00a32a; }
.lcs-modal--warning .lcs-modal__title .dashicons { color: #dba617; }
.lcs-modal--error .lcs-modal__title .dashicons { color: #d63638; }

/* OK button in modals uses the same visual language as the list "Bearbeiten" button,
   but with type colors (green for success, red for error). */
.lcs-modal-ok { border-width: 1px; }
.lcs-modal--success .lcs-modal-ok { color: #00a32a; border-color: #00a32a; }
.lcs-modal--success .lcs-modal-ok:hover { background: #f6fff8; }
.lcs-modal--error .lcs-modal-ok { color: #d63638; border-color: #d63638; }
.lcs-modal--error .lcs-modal-ok:hover { background: #fff5f5; }
.lcs-modal--warning .lcs-modal-ok { color: #dba617; border-color: #dba617; }
.lcs-modal--warning .lcs-modal-ok:hover { background: #fffbea; }

/* Extra overrides requested (success/error title + buttons) */
.lcs-modal--success.is-open .lcs-modal__title {
  color: #00a32a !important;
}
.lcs-modal--success.is-open .lcs-button-small {
  color: #00a32a !important;
  border: 1px solid #00a32a !important;
}
.lcs-modal--error.is-open .lcs-modal__title {
  color: #b32d2e !important;
}
.lcs-modal--error.is-open .lcs-button-small {
  color: #b32d2e !important;
  border: 1px solid #b32d2e !important;
}

/* Link hover/active styling within the plugin UI */
.lcs-wrap a:active,
.lcs-wrap a:hover {
  color: #135e96;
  background-color: #f5f5f5;
}

.lcs-tabs-nav .lcs-lang-switcher img {
  height: 16px;
  width: auto;
  display: block;
}
.lcs-tabs-nav .lcs-lang-switcher a{ display:inline-flex; align-items:center; }
.lcs-tabs-nav .lcs-lang-switcher a.active img{ opacity:1; }
.lcs-tabs-nav .lcs-lang-switcher a:not(.active) img{ opacity:.7; }

/* Recurring rule validation (admin only) */
.lcs-row--invalid td { background: #fff8e5; }

/* ========================================
   Card-based Layout for Termine/Wiederholungen
   ======================================== */

.lcs-cards-repeater {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lcs-card {
  background: #f9f9f9;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 16px;
}

.lcs-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.lcs-card__row + .lcs-card__row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.lcs-card__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lcs-card__field label {
  font-size: 11px;
  font-weight: 600;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lcs-card__field input[type="date"],
.lcs-card__field input[type="time"] {
  width: 130px;
  min-width: 130px;
}

.lcs-card__field input[type="text"] {
  min-width: 180px;
}

.lcs-card__field select {
  min-width: 80px;
}

.lcs-card__field--wide {
  flex: 1;
  min-width: 200px;
}

.lcs-card__field--wide input[type="text"] {
  width: 100%;
}

.lcs-card__actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

/* Wiederholungen: Zwei-Zeilen-Layout */
.lcs-recurring-card {
  background: #f9f9f9;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
}

.lcs-recurring-card__row1 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.lcs-recurring-card__row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.lcs-recurring-card__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lcs-recurring-card__field label {
  font-size: 11px;
  font-weight: 600;
  color: #646970;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lcs-recurring-card__field--type {
  min-width: 140px;
}

.lcs-recurring-card__field--details {
  flex: 1;
  min-width: 200px;
}

.lcs-recurring-card__field--time input[type="time"] {
  width: 100px;
}

.lcs-recurring-card__field--text {
  flex: 1;
  min-width: 150px;
}

.lcs-recurring-card__field--text input {
  width: 100%;
}

.lcs-recurring-card__field--period {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lcs-recurring-card__field--period input[type="date"] {
  width: 130px;
}

.lcs-recurring-card__field--period .lcs-help-inline {
  font-size: 12px;
  color: #646970;
}

.lcs-recurring-card__actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

/* Inline inputs spacing fix */
.lcs-inline-inputs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lcs-inline-inputs .lcs-input {
  margin: 0;
}

.lcs-inline-inputs .lcs-select {
  margin: 0;
}

/* Smaller inputs for compact layouts */
.lcs-input--small {
  padding: 4px 8px;
  font-size: 13px;
}

.lcs-select--small {
  padding: 4px 8px;
  font-size: 13px;
}

/* Warning box for incomplete rules */
.lcs-rec-inline-warning {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: #fff8e5;
  border: 1px solid #dba617;
  border-radius: 4px;
  color: #6b5a00;
  font-size: 13px;
}

.lcs-rec-inline-warning .dashicons {
  margin-right: 6px;
  vertical-align: middle;
}
