/* Raycin Whitelist Apply - [raycin_whitelist_apply] */
:root {
    --bg: #263238;
    --card: #37474f;
    --text: #cfd8dc;
	--textwrap: #80cbc4; /* seperate title colour */
    --muted: #9ea8ad;
    --accent: #80cbc4;
    --border: #8f9a64;
    --ok: #1e3c3a; /* Derived success bg */
    --okb: #80cbc4; /* Derived success border (accent) */
    --err: #4e2b2b; /* Derived error bg */
    --errb: #c57f7f; /* Derived error border */
}

.rc-wrap {
    /* Background is removed from here to prevent
       the title from having a background. */
    color: var(--textwrap);
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.rc-card {
    background: var(--card); /* Moved background here */
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
}
.rc-wrap h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    /* Explicitly remove background/padding to override theme styles */
    background: none;
    padding: 0;
}
.rc-wrap label {
    display: block;
    /* FIX: Increased top margin for more spacing */
    margin: 16px 0 6px;
}
.rc-wrap input, 
.rc-wrap select, 
.rc-wrap textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}
.rc-wrap select {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7.293 9.293a1 1 0 011.414 0L10 10.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* FIX: Style for dropdown options */
.rc-wrap select option {
    background: var(--card);
    color: var(--text);
}

.rc-wrap select:focus {
    outline: 2px solid var(--accent);
}
.rc-wrap .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 760px) {
    .rc-wrap .row {
        grid-template-columns: 1fr 1fr;
    }
}
.rc-wrap .btn {
    background: var(--accent);
    border: 0;
    color: #263238; /* New text color for contrast */
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 14px;
}
.rc-wrap .muted {
    color: var(--muted);
}
.rc-wrap .ok {
    background: var(--ok);
    border: 1px solid var(--okb);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.rc-wrap .err {
    background: var(--err);
    border: 1px solid var(--errb);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.rc-wrap small {
    color: var(--muted);
    font-size: 0.875rem;
}
.rc-wrap code {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 6px;
}
.rc-wrap .mask {
    letter-spacing: 0.04em;
}
.rc-wrap ::placeholder {
    color: var(--muted);
    opacity: 1;
}
.rc-wrap input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Raycin Whitelist Status - [raycin_status] */
.rcs-card {
    /* Defining variables here to scope them
      to just this component.
    */
    --bg: #263238;
    --card: #37474f;
    --text: #cfd8dc;
    --muted: #9ea8ad;
    --accent: #80cbc4;
    --border: #8f9a64;
    
    background: var(--card); /* Moved background here */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.rcs-row {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}
.rcs-input {
    flex: 1;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}
.rcs-btn {
    background: var(--accent);
    color: #263238; /* New text color for contrast */
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}
.rcs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.rcs-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
}
.rcs-tip {
    color: var(--muted);
    margin-top: 6px;
}