/* This file is for your main application css. */

.box {
    display: inline-block;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-bottom: 6px solid black;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-top: 6px solid black;
}

.arrow-up:hover {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-bottom: 6px solid #33cc33;
}

.arrow-down:hover {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-top: 6px solid #33cc33;
}

.active-arrow-up {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-bottom: 6px solid rgba(51, 204, 51, 0.80);
}

.active-arrow-down {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;

    border-top: 6px solid rgba(51, 204, 51, 0.80);
}

.material-switch > input[type="checkbox"] {
    display: none;
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

.material-switch > label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: -8px;
    position: absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;
}

.material-switch > label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}

.material-switch > input[type="checkbox"]:checked + label::before {
    background: rgb(51, 204, 50);
    opacity: 0.75;
}

.material-switch > input[type="checkbox"]:checked + label::after {
    background: rgb(255, 255, 255);
    left: 20px;
}

.adjust-flex {
    margin-left: -4px;
}

.adjust-flex-2 {
    margin-left: -8px;
}

.mg-bot {
    margin-bottom: 5px;
}

.ninja {
    display: none !important;
}

.burger-container {
    display: relative;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 2px;
    background-color: white;
    margin: 0;
    transition: 0.4s;
}

.bar4 {
    width: 30px;
    height: 6px;
    margin: 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-5px, 6px);
}

.change .bar2, .change .bar4 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -6px);
    transform: rotate(45deg) translate(-6px, -6px);
}

pre {
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.comment-icon {
    font-size: 30px;
    padding-top: 5px !important;
    padding-left: 40px !important;
    padding-bottom: 0 !important;
    cursor: pointer;
    color: #38a750;
}

#wide-modal {
    max-width: 800px;
}

#add-comment-button {
    cursor: pointer;
}

.filter-form {
    max-width: 134px;
}

#hide-filters {
    margin-left: 20px;
    margin-top: 20px;
    max-width: 150px;
}

#filters-buttons {
    margin-left: 20px;
}

.power-management {
    display: flex;
}

.test-buttons-container {
    display: flex;
    flex-direction: row;
}

@media only screen and (max-width: 750px) {
    .power-management {
        flex-direction: column;
        height: 300px;
    }

    .test-buttons-container {
        flex-direction: column;
    }
}

.power-object {
    width: 150px;
    display: flex;
    flex-direction: column;
}

.flex-table-header {
    align-items: center;
    justify-content: space-between;
}

.language-switcher form {
    margin-bottom: 0;
    color: white;
}

.centered-data {
    vertical-align: middle !important;
    text-align: center;
}

.left-aligned-centered-data {
    vertical-align: middle !important;
    text-align: left;
}

.language-switcher form input[type="submit"] {
    border-radius: 0;
    border: 0;
}

.status-options {
    padding: 5px;
    margin-top: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Kolory dla opcji */
.status-options option.bg-danger {
    background-color: #dc3545;
    color: white;
}

.status-options option.bg-warning {
    background-color: #ffc107;
    color: black;
}

.status-options option.bg-success {
    background-color: #28a745;
    color: white;
}

/* Zachowanie po najechaniu myszką */
.status-options option:hover {
    filter: brightness(0.9);
}

/* Stylizacja aktywnego wyboru */
.status-options option:checked {
    font-weight: bold;
    border: 2px solid #495057;
}

kbd {
    transition: background-color 0.3s, color 0.3s;
}

#drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    color: #ccc;
    margin: auto;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 50vh;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

#pdf-preview {
    width: 80%;
    height: 100%;
    border: none;
    display: none;
}

#file-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    display: none;
}

#drop-zone.dragover {
    border-color: #000;
    background-color: #f0f0f0;
    color: #000;
}

.btn-info-dark {
    color: #fff;
    background-color: #2a69a5;
    border-color: #2a69a5;
}

.btn-info-dark:hover {
    color: #fff;
    background-color: #245f91;
    border-color: #215781;
}

.btn-info-dark:focus, .btn-info-dark.focus {
    box-shadow: 0 0 0 2px rgba(42, 105, 165, 0.5);
}

.btn-info-dark.disabled, .btn-info-dark:disabled {
    background-color: #2a69a5;
    border-color: #2a69a5;
}

.btn-info-dark:active, .btn-info-dark.active,
.show > .btn-info-dark.dropdown-toggle {
    color: #fff;
    background-color: #245f91;
    background-image: none;
    border-color: #215781;
}

.btn-info-green {
    color: #fff;
    background-color: #6DDCBD;
    border-color: #6DDCBD;
}

.btn-info-green:hover {
    color: #fff;
    background-color: #59c1a5;
    border-color: #4eb092;
}

.btn-info-green:focus, .btn-info-green.focus {
    box-shadow: 0 0 0 2px rgba(109, 220, 189, 0.5);
}

.btn-info-green.disabled, .btn-info-green:disabled {
    background-color: #6DDCBD;
    border-color: #6DDCBD;
}

.btn-info-green:active, .btn-info-green.active,
.show > .btn-info-green.dropdown-toggle {
    color: #fff;
    background-color: #59c1a5;
    background-image: none;
    border-color: #4eb092;
}

.credit-card {
    width: 300px;
    height: 180px;
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    font-family: monospace;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.credit-card:hover {
    transform: translateY(-5px);
}

.credit-card.status-unknown {
    background: linear-gradient(45deg, #8a95a0 0%, #495057 100%);
}

.credit-card.status-readed {
    background: linear-gradient(45deg, #20c5e3 0%, #0a7082 100%);
}

.credit-card.status-loaded {
    background: linear-gradient(45deg, #ffd43b 0%, #c69500 100%);
}

.credit-card.status-issued {
    background: linear-gradient(45deg, #34ce57 0%, #1e7e34 100%);
}

.credit-card.status-not_issued {
    background: linear-gradient(45deg, #f55a6c 0%, #b21f2d 100%);
}

.credit-card.status-canceled {

    background: linear-gradient(45deg, #ffa500 0%, #ff6b00 100%);
}

.credit-card.status-pulled_in {
    background: linear-gradient(45deg, #7d33ff 0%, #4508a0 100%);
}

.magnetic-stripe {
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
}


.card-number {
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 60px;
}

.card-date {
    font-size: 12px;
    opacity: 0.8;
    text-decoration: none!important;
    color: white;
}

.card-date:hover {
    color: #b4e293;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-details {
    text-align: center;
}

.large-card {
    transform: scale(1.5);
    margin: 50px auto;
}

.logs-section {
    text-align: center;
    margin-top: 40px;
    max-height: 300px;
    overflow-y: auto;
}