.ywsci-dashboard-container * {
    box-sizing: border-box;
}

.ywsci-site-selector:hover {
    background-color: #374151 !important;
    color: #31f3aa !important;
}

.ywsci-config-form .form-row label {
    color: #d1d5db;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.ywsci-config-form .input-text,
.ywsci-config-form select {
    background-color: #111827;
    border: 1px solid #374151;
    color: #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ywsci-config-form .input-text:focus,
.ywsci-config-form select:focus {
    border-color: #31f3aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 243, 170, 0.1);
}

.ywsci-config-form select option {
    background-color: #111827;
    color: #e5e7eb;
}

.ywsci-config-form .button {
    background-color: #31f3aa;
    color: #111827;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.ywsci-config-form .button:hover {
    background-color: #2bd696;
}

.ywsci-config-form .button:active {
    transform: scale(0.98);
}

.ywsci-config-form .button:disabled {
    background-color: #374151;
    color: #9ca3af;
    cursor: not-allowed;
}

.ywsci-mapping-section {
    background: #111827 !important;
    border-color: #374151 !important;
    border-radius: 8px;
}

.ywsci-mapping-section h4 {
    color: #31f3aa;
}

.ywsci-mapping-section th {
    color: #9ca3af;
    border-bottom: 1px solid #374151;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.ywsci-mapping-section td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ywsci-attribute-pairs-container .ywsci-attr-pair-row span {
    color: #31f3aa;
    font-weight: bold;
}

.ywsci-remove-attr-pair {
    background-color: transparent !important;
    color: #ef4444 !important;
    font-size: 1.5rem !important;
    padding: 0 10px !important;
}

.ywsci-remove-attr-pair:hover {
    color: #b91c1c !important;
}

.ywsci-add-attr-pair {
    background-color: transparent !important;
    color: #31f3aa !important;
    border: 1px dashed #31f3aa !important;
    width: 100%;
}

.ywsci-add-attr-pair:hover {
    background-color: rgba(49, 243, 170, 0.1) !important;
}

#ywsci-form-response {
    margin-top: 15px;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    display: none;
}
#ywsci-form-response:not(:empty) {
    display: block;
}

.ywsci-config-form input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #111827;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.3em;
    height: 1.3em;
    border: 1px solid #374151;
    border-radius: 0.25em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* The inner checkmark SVG path */
.ywsci-config-form input[type="checkbox"]::before {
    content: "";
    width: 0.75em;
    height: 0.75em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #111827;
    background-color: #111827;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.ywsci-config-form input[type="checkbox"]:checked {
    background-color: #31f3aa;
    border-color: #31f3aa;
}

.ywsci-config-form input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.ywsci-config-form .ywsci-checkbox-row label {
    margin-bottom: 0; /* Reset margin so it aligns perfectly with the flexbox */
}

@media (max-width: 768px) {
    .ywsci-dashboard-container {
        flex-direction: column;
        gap: 20px !important;
    }
    
    .ywsci-sites-sidebar {
        flex: none !important;
        width: 100%;
        padding: 15px !important;
    }
    
    .ywsci-site-panel {
        padding: 20px !important;
        width: 100%;
    }
    
    .ywsci-site-panel > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .ywsci-site-panel > div:first-child > div {
        width: 100%;
        justify-content: flex-start;
        gap: 15px !important;
    }
    
    .ywsci-site-panel > div:first-child > div > div {
        text-align: left !important;
    }
    
    .ywsci-site-panel > div:first-child > div > div:last-child {
        border-left: none !important;
        padding-left: 0 !important;
    }
    
    .ywsci-attr-pair-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px !important;
        background: #111827;
        padding: 15px;
        border-radius: 6px;
        border: 1px solid #374151;
    }
    
    .ywsci-attr-pair-row > div {
        width: 100%;
    }
    
    .ywsci-attr-pair-row > span {
        display: none;
    }
    
    .ywsci-remove-attr-pair {
        margin-top: 5px !important;
        align-self: flex-end;
    }
}