body.dark-mode {
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    color: #ffcccc;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
}

/* dark-side panel */
.dark-side {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: transparent;
    border-radius: 0px;
    color: #dd6666;
    border: none;
    box-shadow: none;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
}

.dark-side .dark-hash {
    position: fixed;
    display: flex;
    gap: 10px;
    align-items: center;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    z-index: 60;
}

.dark-side label {
    color: #ff6666;
    font-weight: 700;
}

.dark-side #password-hash {
    font-family: monospace;
    color: #eaf6ff;
}

.brute-area {
    display: flex;
    gap: 12px;
    flex-direction: column;
    /* align-items: center; */
}

#password-input-dark {
    letter-spacing: 0.5rem;
}

.hash-input {
    font-family: monospace;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
    border: 0px;
    background: rgba(20, 2, 2, 0.9);
    color: #cc5555;
    width: 39.9rem;
}

.option {
    display: flex;
    flex-direction: column;
}

.attempt-display {
    min-width: 350px;
    width: 350px;
    font-family: monospace;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: 0.8rem;
    background: rgba(20, 2, 2, 0.9);
    color: #cc5555;
    border: 0px;
}

.attempt-hash {
    min-width: 320px;
}

.dark-controls {
    display: flex;
    gap: 8px;
}

.dark-controls button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #8b2323;
    color: #cc5555;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dark-controls button:hover {
    background: #bb3333;
    box-shadow: 0 0 10px rgba(200, 0, 0, 0.4);
}

.attempts-count {
    color: #bb6666;
    font-weight: 600;
    margin-top: 8px;
}

/* ensure dark-side uses relative positioning so absolute hash box can be positioned anywhere on page by JS */
.dark-side {
    position: relative;
    flex-direction: row;
}

.time-to-solve {
    color: #bb6666;
    margin-top: 8px;
    font-weight: 600;
}

body.dark-mode .dark-side {
    display: flex;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
}

body.dark-mode .font-red-white {
    color: #ffcccc;
    background: #8b2323;
}

body.dark-mode #toggle-hacker {
    background: #8b2323;
    color: #ffcccc;
    border: 2px solid #cc5555;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(200, 0, 0, 0.25);
    transition: none !important;
}

body.dark-mode #toggle-hacker:hover {
    background: #bb3333;
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.35);
    transition: none !important;
}

/* Title and subtitle color for dark mode */
body.dark-mode h1 {
    color: #ff4444 !important;
    text-shadow: 0 6px 24px rgba(255, 0, 0, 0.25);
}

body.dark-mode .subtitle {
    color: #ffbbbb !important;
    text-shadow: 0 2px 8px rgba(255, 0, 0, 0.15);
}

body.dark-mode .strength-section,
body.dark-mode .time-section {
    display: none !important;
}

body.dark-mode #password-input,
body.dark-mode #toggle-visibility {
    display: none !important;
}

body.dark-mode #password-input {
    background: #071026;
    color: #eaf6ff;
    border-color: rgba(120, 160, 255, 0.12);
}

.options {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.option{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Custom checkbox styling */
.option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #8b2323;
    border-radius: 4px;
    background: rgba(15, 1, 1, 0.9);
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.option input[type="checkbox"]:checked {
    background: #8b2323;
    box-shadow: inset 0 0 8px rgba(150, 40, 40, 0.5);
}

.option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #cc5555;
    font-weight: bold;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option input[type="checkbox"]:hover {
    border-color: #bb3333;
    box-shadow: 0 0 8px rgba(150, 40, 40, 0.3);
}

.option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: rgba(80, 15, 15, 0.7);
}