@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

.swal2-confirm {
    background-color: gray !important;
    color: white !important;
}
.swal2-popup {
    background-color: black !important;
    border: 2px solid white !important; 
    color: white;
}

body {
    background-color: #121212;
    font-family: 'Poppins', sans-serif;
    /* font-family: 'Inconsolata', monospace; */
    color: #ffffff;
}

textarea {
    resize: none;
}

.block {
    width: 100%;
}

.black-vatican,
.black-vatican:hover,
.black-vatican:active,
.black-vatican:focus {
    border-color: #ffffff;
    background-color: #121212;
    color: #ffffff;
}

.card {
    background-color: #121212;
    box-shadow: 0 0 5px #ffffff;
    border-color: #ffffff;
    background-color: #121212;
}

.px-1 {
    margin-top: auto;
}

#cards {
    background-color: #121212;
    color: #ffffff;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    text-align: center;
    font-size: .9em;
}

img {
    width: 60%;
    max-width: 60%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: grayscale(100%);
}

#counter {
    font-size: 80%;
}

.btn-outline-light,
.btn-outline-light:hover {
    background-color: #121212;
    color: #ffffff;
    border: 1px solid #ffffff;
}

#cvv-show-btn,
#ccn-show-btn,
#dead-show-btn {
    font-family: 'Roboto Mono', monospace;
}

#cvv-clear-btn,
#ccn-clear-btn,
#dead-clear-btn {
    font-family: 'Roboto Mono', monospace;
    margin-right: 5px;
}
.material-symbols-outlined {
    vertical-align: top;
}

#cvv-div,
#ccn-div,
#dead-div {
    font-family: 'Roboto Mono', monospace;
    font-size: 80%;
}

.badge {
    color: white;
    border: 1px solid #ffffff;
    background-color: transparent;
    font-size: 90%;
}

.float-right {
    float: right;
}

.slider-container {
    display: flex;
    align-items: center;
    width: 180px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 125px; 
    height: 8px; 
    background: #ccc; 
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin-right: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #333; 
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

#concurrent-value {
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.progress-bar-container {
    background-color: #333; 
    color: #fff; 
}

.progress-bar {
    background-color: #555; 
    border-radius: 3px;
    padding: 3px;
}

.worker-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
    container-type: inline-size;
}

.dashboard-row {
    align-items: stretch;
}

.dashboard-column {
    display: flex;
    min-height: 0;
}

.dashboard-panel {
    flex: 1 1 auto;
    min-height: 0;
}

body {
    background-color: #090204;
}

.card {
    border-color: #d4142a;
    box-shadow: 0 0 12px rgba(212, 20, 42, 0.55);
}

.black-vatican,
.black-vatican:hover,
.black-vatican:active,
.black-vatican:focus,
.btn-outline-light,
.btn-outline-light:hover {
    border-color: #d4142a;
    background-color: #160507;
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #d4142a;
    color: #ffffff;
}

#counter {
    color: #ff3148;
}

.progress-bar-container {
    background-color: #34080d;
}

.progress-bar {
    background-color: #d4142a;
}

input[type="range"] {
    background: #68111c;
}

input[type="range"]::-webkit-slider-thumb {
    background: #d4142a;
}

input[type="range"]::-moz-range-thumb {
    background: #d4142a;
}

.worker-header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.worker-config {
    text-align: center;
}

@container (max-width: 460px) {
    .worker-card .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .worker-card .card-header > .d-flex {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .worker-card .card-header > span:first-child {
        flex: 1;
    }

    .slider-container {
        width: min(100%, 240px);
    }

    input[type="range"] {
        flex: 1;
        width: auto;
    }
}

.service-select {
    position: relative;
}

.service-select select {
    appearance: none;
    padding-right: 42px;
}

.service-select .material-symbols-outlined {
    position: absolute;
    top: 50%;
    right: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    color: #ff3148;
}

.worker-counters {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    padding: 8px 24px 12px;
}

.worker-card .progress-bar-container {
    display: none;
}

#counter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    width: 100%;
    max-width: 320px;
    margin: 0;
    font-size: 1.1rem;
}

.status-row {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 16px;
    border: 1px solid #7a1020;
    border-left: 4px solid #d4142a;
    background: #160507;
    color: #ffffff;
}

.status-row strong {
    color: #ff3148;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.action-row > div {
    padding-bottom: 0;
}

@media (max-width: 991px) {
    .dashboard-row {
        row-gap: 16px;
    }

    .dashboard-column {
        min-width: 0;
    }

    .worker-card .card-header {
        gap: 8px;
    }

    .slider-container {
        width: 150px;
    }

    input[type="range"] {
        width: 95px;
    }
}

@media (max-width: 767px) {
    .dashboard-row {
        margin-right: 0.25rem !important;
        margin-left: 0.25rem !important;
    }

    .dashboard-column {
        width: 100%;
    }

    .worker-card {
        min-height: 360px;
    }

    .worker-counters {
        padding: 8px 20px 12px;
    }

    #counter {
        max-width: none;
    }

    .status-row {
        padding: 10px 16px;
    }

    .status-row strong {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .container-fluid {
        padding-right: 8px;
        padding-left: 8px;
    }

    .dashboard-row {
        margin-top: 0.75rem !important;
    }

    .card-header,
    .card-body {
        padding-right: 12px;
        padding-left: 12px;
    }

    .action-row {
        row-gap: 8px;
    }

    .action-row > div:nth-child(odd) {
        padding-right: 4px;
    }

    .action-row > div:nth-child(even) {
        padding-left: 4px;
    }

    .worker-card .card-header {
        flex-wrap: wrap;
    }

    .worker-card .card-header > .d-flex {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .worker-header-actions {
        margin-left: auto;
    }

    .slider-container {
        width: min(100%, 240px);
    }

    input[type="range"] {
        flex: 1;
        width: auto;
    }

    .worker-counters {
        padding-right: 16px;
        padding-left: 16px;
    }

    .status-row {
        padding: 10px 14px;
    }

    .status-row strong {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .results-panel {
        margin-right: 0.25rem !important;
        margin-left: 0.25rem !important;
    }
}

body.dark-mode {
    background-color: #121212;
}

body.dark-mode .card {
    border-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}

body.dark-mode .black-vatican,
body.dark-mode .black-vatican:hover,
body.dark-mode .black-vatican:active,
body.dark-mode .black-vatican:focus,
body.dark-mode .btn-outline-light,
body.dark-mode .btn-outline-light:hover {
    border-color: #ffffff;
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode #counter {
    color: #ffffff;
}

body.dark-mode .status-row {
    border-color: #555555;
    border-left-color: #ffffff;
    background-color: #121212;
}

body.dark-mode .status-row strong,
body.dark-mode .service-select .material-symbols-outlined {
    color: #ffffff;
}

body.dark-mode .progress-bar-container {
    background-color: #333;
}

body.dark-mode .progress-bar {
    background-color: #555;
}

body.dark-mode input[type="range"] {
    background: #ccc;
}

body.dark-mode input[type="range"]::-webkit-slider-thumb,
body.dark-mode input[type="range"]::-moz-range-thumb {
    background: #333;
}

.textarea-container {
    display: flex;
    position: relative;
}

.line-numbers {
    padding: 5px;
    background-color: #333;
    color: #ccc;
    text-align: right;
    user-select: none;
    font-family: monospace;
    overflow: hidden;
    border-right: 1px solid #555;
    height: 250px;
    box-sizing: border-box;
}

#lineNumbers {
    min-width: 25px;
}

textarea#modalInput {
    width: 100%;
    font-family: monospace;
    padding-left: 10px;
    background-color: transparent;
    height: 250px;
    box-sizing: border-box;
    overflow-x: auto; 
    overflow-y: auto; 
    white-space: pre; 
    word-wrap: normal;
}

.textarea-container {
    position: relative;
    flex-grow: 1;
}

#forwarderResult {
    white-space: pre-line;
    word-break: break-all;
    text-align: left;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    width: 90%;
    max-width: 380px;
    background: #160507;
    border: 1px solid #d4142a;
    box-shadow: 0 0 20px rgba(212,20,42,0.6);
    padding: 28px 24px;
    text-align: center;
}

.auth-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.auth-error {
    color: #ff3148;
    font-size: 0.85rem;
    margin-top: 10px;
}

body.dark-mode .auth-modal {
    background: #121212;
    border-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}
