/**
Global colors

Global Fonts

Global Buttons

Global Forms
**/

/* =======================
   VARIABLE DECLARATIONS
   ======================= */
:root {
    /* New Design System */
    --primary-color: #091b33;
    /* Dunkelblau - Main Background */
    --secondary-color: #30b5e5;
    /* Hellblau - Buttons/Highlights */
    --accent-color: #fcdb86;
    /* Gelb - Akzente */
    --text-color: #333333;
    --text-color-light: #ffffff;
    --bg-light: #f4f7f6;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --font-family: 'Poppins', sans-serif;

    /* Legacy Mappings (soft deprecation) */
    --primary-color-blue: var(--secondary-color);
    --primary-color-pink: #DC6A89;
    --primary-color-yellow: var(--accent-color);
    --primary-color-pale-blue: #daeef7;
    --danger-color: #ff4d4d;
    --blue-color: var(--secondary-color);
    --black-color: var(--primary-color);
    --white-color: #fff;
    --grey-color: #666;
    --dark-pink-color: #ec2459;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sx-color-primary: var(--secondary-color) !important;
}

body {
    font-family: var(--font-family);
}

/* =======================
   BUTTON STYLES
   ======================= */
.add-btn-primary,
.add-btn-danger {
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    margin: 10px;
    text-align: center;
    text-transform: none;
    font-weight: bold;
    /* width: 50%; */
}

.add-btn-primary {
    background-color: var(--blue-color);
}

.add-btn-danger {
    background-color: var(--dark-pink-color);
}

.add-btn-primary i,
.add-btn-danger i {
    margin-right: 8px;
}

.add-btn-primary:hover {
    background-color: #0056b3;
    color: var(--white-color);
    transform: translateY(-2px);
}

.add-btn-danger:hover {
    background-color: #a71139;
    color: var(--white-color);
    transform: translateY(-2px);
}

.edit-btn,
.delete-btn,
.confirm-btn-danger,
.confirm-btn-primary,
.accept-btn,
.decline-btn {
    background-color: #65C6EF;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    font-weight: bold;
}

.delete-btn,
.confirm-btn-danger {
    background-color: #DC6A89;
}

.edit-btn:hover {
    background-color: #FFF164;
    transform: scale(1.05);
}

.accept-btn {
    background-color: #20b380;
}

.decline-btn {
    background-color: rgb(230, 67, 67);
}

.delete-btn:hover,
.confirm-btn-danger:hover,
.confirm-btn-primary:hover,
.accept-btn:hover,
.decline-btn:hover {
    background-color: #FFF164;
    transform: scale(1.05);
}

.fab-button {
    padding: 0;
    position: fixed;
    /* Fixe Positionierung */
    bottom: 30px;
    /* Abstand vom unteren Rand */
    right: 30px;
    /* Abstand vom rechten Rand */
    background-color: #65C6EF;
    /* Hintergrundfarbe des Buttons */
    color: white;
    /* Textfarbe */
    border: none;
    /* Kein Rahmen */
    border-radius: 50%;
    /* Runde Form */
    width: 56px;
    /* Breite */
    height: 56px;
    /* Höhe */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Schatten für 3D-Effekt */
    font-size: 24px;
    /* Schriftgröße */
    cursor: pointer;
    /* Zeigt Hand beim Überfahren */
    display: none;
    /* Standardmäßig ausgeblendet */
    transition: background-color 0.3s, transform 0.3s;
    /* Sanfter Übergang */
}

.fab-button:hover {
    background-color: #DC6A89;
    /* Farbänderung beim Hover */
    transform: scale(1.1);
    /* Leichtes Vergrößern beim Hover */
}

/* =======================
   LIST STYLES
   ======================= */

.application-list p {
    color: #333;
}

.application-list {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.application-item {
    background-color: #F3F9FF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.application-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.application-header .date {
    color: #8C9CA9;
}

.application-body {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* =======================
   MODAL STYLES
   ======================= */

.my-plugin-modal,
.my-plugin-absence-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.my-plugin-modal-content {
    background-color: #fefefe;
    margin: 9% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.my-plugin-modal-content h2 {
    text-align: center;
}

.my-plugin-close-button,
.my-plugin-absence-close-button {
    color: var(--danger-color);
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.my-plugin-close-button:hover,
.my-plugin-close-button:focus,
.my-plugin-absence-close-button:hover,
.my-plugin-absence-close-button:focus {
    color: var(--grey-color);
    text-decoration: none;
    cursor: pointer;
}

/* =======================
   FORM STYLES
   ======================= */
.form-logo {
    margin-left: 40%;
    width: 100px;
    margin-top: -71px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.my-plugin-form-group {
    margin-bottom: 15px;
}

.my-plugin-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--black-color);
    text-transform: unset;
}

.my-plugin-publish-item label,
.my-plugin-location-job-item label,
.my-plugin-time-item label,
.my-plugin-absence-item label {
    text-transform: unset;
}

.my-plugin-form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}


.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    /* Hellroter Hintergrund für Fehler */
    color: #ff4d4d;
    /* Helles Rot für den Text */
    border: 1px solid #ff4d4d;
    /* Gleicher Farbton für den Rand */
    padding: 10px;
    /* Abstand innerhalb des Containers */
    margin-top: 10px;
    /* Abstand nach oben */
    border-radius: 5px;
    /* Abgerundete Ecken */
    font-size: 14px;
    /* Moderne, kleinere Schriftgröße */
    display: flex;
    /* Flexbox für horizontale Ausrichtung */
    align-items: center;
    /* Vertikal ausrichten */
}


.error-message i {
    font-size: 18px;
    /* Größeres Symbol für Aufmerksamkeit */
    margin-right: 10px;
    /* Abstand zwischen Icon und Text */
    color: #ff4d4d;
    /* Farbe des Icons */
}

.my-plugin-mode-select,
.my-plugin-location-job-mode-select,
.my-plugin-publish-select-mode,
.my-plugin-select,
.my-plugin-absence-type-mode-select,
.my-plugin-number-of-employees-mode-select {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.form-item {
    flex: 1;
}

.form-select,
.form-date {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.form-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.form-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #0381bb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.form-button:hover {
    background-color: #0056b3;
}

/* =======================
   MODAL STYLES
   ======================= */

/* Modal Basis */
.time-table-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.time-table-modal-content,
.shift-card {
    background-color: #f9f9f9;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.time-table-modal-content h2,
.shift-card h2 {
    text-align: center;
}

/* Modal Info */
.time-table-modal-info p,
.shift-card-info p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

.time-table-modal-info i,
.shift-card-info i {
    margin-right: 10px;
    color: #3f51b5;
}

/* Modal Buttons */
.time-table-modal-buttons,
.shift-card-buttons {
    margin-top: 20px;
    text-align: center;
}

.time-table-modal-buttons #correct-btn {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: none;
}

.time-table-modal-buttons #exchange-btn,
#submit-correction-btn,
.accept-confirm {
    background-color: #20b380;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 50%;
    text-transform: none;
    line-height: 1;
}

.time-table-modal-buttons #cancel-exchange-btn,
#cancel-correction-btn,
.cancel-confirm,
.trade-card-accept-btn {
    background-color: #ec2459;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 50%;
    text-transform: none;
    line-height: 1;
}

.time-table-modal-buttons p {
    text-align: left;
}

.time-table-modal-buttons p i {
    margin-right: 10px;
    color: #20b380;
}

.time-table-modal-buttons #correct-btn:hover {
    background-color: #303f9f;
    color: white;
}

.time-table-modal-buttons #exchange-btn:hover {
    background-color: #20b380;
    color: white;
}

/* Close Button */
.time-table-modal-close,
.shift-time-table-modal-close,
.absence-time-table-modal-close,
.edit-time-table-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.time-table-modal-close:hover,
.shift-time-table-modal-close:hover,
.time-table-modal-close:focus,
.shift-time-table-modal-close:focus,
.absence-time-table-modal-close:hover,
.absence-time-table-modal-close:focus,
.edit-time-table-modal-close:hover,
.edit-time-table-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.time-section {
    margin-bottom: 15px;
    border-radius: 4px;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.time .label {
    font-weight: bold;
}

.total-duration {
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
}

/* =======================
   TABS STYLES
   ======================= */

.tabs-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.tabs {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    background-color: #65C6EF;
    /* Hauptfarbe für die Tabs-Leiste */
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tabs .tab-link,
.tabs .tab-link-2 {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
    min-width: 150px;
    background-color: #BBDCEC;
    /* Standard Tab-Farbe */
}

.tabs .tab-link:hover,
.tabs .tab-link-2:hover {
    background-color: #FFF164;
    /* Hover-Farbe */
    color: #333;
    /* Textfarbe bei Hover */
}

.tabs .tab-link.active,
.tabs .tab-link-2.active {
    background-color: #DC6A89;
    /* Aktiver Tab-Hintergrund */
    color: white;
    /* Textfarbe für den aktiven Tab */
}

.tab-content,
.tab-content-2 {
    padding: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active,
.tab-content-2.active {
    display: block;
    background-color: var(--white-color) !important;
}


/* =======================
   ANIMATIONS STYLES
   ======================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   CONTAINER STYLES
   ======================= */
.history-container {
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.history-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Timeline */
.history-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
}

.history-item {
    position: relative;
    margin-bottom: 20px;
}

.history-marker {
    position: absolute;
    left: -8px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: #0073e6;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.history-content {
    margin-left: 20px;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.history-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.history-content .in-progress-text {
    color: #0073e6;
    font-weight: bold;
}

.history-content .accepted-text {
    color: #20b380;
    font-weight: bold;
}

.history-content .declined {
    color: orangered;
    font-weight: bold;
}

/* Hover effect */
.history-item:hover .history-content {
    background: #f0f8ff;
    border: 1px solid #0073e6;
}

.log-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.log-entry {
    display: flex;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.log-entry-text {
    display: block;
}

.more-logs {
    display: none;
}

.more-logs.show {
    display: block;
}

.toggle-logs {
    color: #0381bb;
    cursor: pointer;
    margin-left: auto;
}

.toggle-logs:hover {
    background-color: #fff;
}

.reminder-sent {
    background-color: palevioletred !important;
}

/* =======================
   TOAST STYLES
   ======================= */

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    text-align: center;
    display: none;
    /* Standardmäßig versteckt */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.success {
    background-color: #4caf50;
    /* Grün für Erfolg */
}

.toast.error {
    background-color: #f44336;
    /* Rot für Fehler */
}

.toast.info {
    background-color: #0381bb;
    /* Rot für Fehler */
}

.toast.warning {
    background-color: #FFF164;
    color: #333;
    /* Rot für Fehler */
}

/* =======================
   MEDIA QUERY STYLES
   ======================= */
@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
        /* Tabs untereinander anordnen */
    }

    .tabs .tab-link,
    .tabs .tab-link-2 {
        font-size: 14px;
        padding: 10px;
    }

    #tab-3.tab-content {
        padding: 0;
    }

    .previous-data {
        display: none;
    }

    .application-item {
        padding: 15px;
    }

    .application-actions {
        flex-direction: column;
        gap: 10px;
    }

    #confirm-delete-modal .application-actions {
        justify-content: center;

    }

    #confirm-delete-modal .application-actions .confirm-btn-danger,
    #confirm-delete-modal .application-actions .confirm-btn-primary {
        width: 30%;
        text-align: center;
    }

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

    .toggle-current-data::after {
        content: '+';
        font-size: 20px;
        color: #65C6EF;
        cursor: pointer;
    }

    .toggle-current-data.collapsed::after {
        content: '-';
    }

    .toggle-current-data.collapsed+.application-body .previous-data {
        display: block;
    }

    .application-body {
        display: inline;
    }

}

#content {
    max-width: unset !important;
}

@media (max-width: 768px) {
    .my-plugin-modal-content {
        margin: 25% auto;
    }

    .form-item {
        margin-bottom: 8px;
    }

    .tab-content-2,
    .tab-content-3 {
        padding: 0px;
    }

    .decline-btn,
    .accept-btn {
        width: 60%;
    }

    .application-actions {
        align-items: center;
    }
}