/* ==========================================================================
   THE LONE STACK - SOVEREIGN LISTMONK PUBLIC THEME
   ========================================================================== */

/* 1. Global Reset & Body Matrix */
body {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 2rem 1rem !important;
    margin: 0 !important;
}

/* 2. Container Box Alignment */
.container {
    max-width: 480px !important;
    margin: 3rem auto !important;
}

.box {
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 2.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* 3. Typography & Headers */
.title {
    color: #f0f6fc !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.sub-title, p, .help-text {
    color: #8b949e !important;
    font-size: 0.95rem !important;
}

/* Add an operator badge similar to the WordPress component layout */
.box::before {
    content: "THE LONE STACK COMMS";
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

/* 4. Form Controls & Inputs */
.form-group label, label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #8b949e !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    padding: 0.8rem 1rem !important;
    color: #f0f6fc !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
}

/* 5. Custom Checkboxes & Lists */
.list-group {
    border: 1px solid #21262d !important;
    border-radius: 6px !important;
    background: #161b22 !important;
    margin: 1.5rem 0 !important;
    padding: 0.5rem 0 !important;
}

.list-item {
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid #21262d !important;
}

.list-item:last-child {
    border-bottom: none !important;
}

/* Checkbox Restyling to fit Dark Theme */
input[type="checkbox"] {
    accent-color: #238636 !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 0.75rem !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

/* 6. Primary Form Buttons */
.btn, .form-btn, button[type="submit"] {
    background: #238636 !important;
    border: 1px solid rgba(240, 246, 252, 0.1) !important;
    border-radius: 6px !important;
    padding: 0.9rem 1.5rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn:hover, .form-btn:hover {
    background: #2ea043 !important;
    color: #ffffff !important;
}

.btn:active, .form-btn:active {
    transform: scale(0.99) !important;
}

/* Secondary/Unsubscribe/Link Buttons */
a {
    color: #58a6ff !important;
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

/* 7. Alerts and System Messages */
.alert {
    border-radius: 6px !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.9rem !important;
}

.alert-success {
    background: rgba(35, 134, 54, 0.15) !important;
    border: 1px solid rgba(56, 139, 60, 0.4) !important;
    color: #56d364 !important;
}

.alert-danger, .alert-error {
    background: rgba(248, 81, 73, 0.1) !important;
    border: 1px solid rgba(248, 81, 73, 0.4) !important;
    color: #ff7b72 !important;
}

/* 8. Footer Attributions */
.footer, .power {
    font-size: 0.75rem !important;
    color: #8b949e !important;
    text-align: center !important;
    margin-top: 2rem !important;
    border-top: 1px solid #21262d !important;
    padding-top: 1.25rem !important;
}