:root {
    --primary-color: linear-gradient(to bottom, #23a6d5, #2575fc, #0850cb);
    --secondary-color: linear-gradient(to top, #e73c7e, #d83c78, #b43163);
    --third-color: linear-gradient(to top, #23a6d5, #2575fc, #0850cb);
    --forth-color: linear-gradient(to bottom, #e73c7e, #d83c78, #b43163);
    --panel-primary-color: #cccccc;
    --panel-secondary-color: #23a6d5;
    --panel-third-color: #a4a6d2;
    --border-primary-color: #eaeaeac9;
    --border-secondary-color: rgb(148 148 148);
    --border-primary-style: groove;
    --border-secondary-style: solid;
    --text-primary-color: white;
    --text-secondary-color: black;
    --text-third-color: #7d1a24;
    --text-forth-color: blue;
    --shadow-primary: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    --shadow-secondary: -0 2px 1px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    --transition-primary: all 500ms ease;
    --transition-secondary: opacity 0.25s ease-in-out;
}

html {
    height: 100%;
    width: 100%;
}

footer {
    flex-shrink: 0;
}

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.panel-default {
    background: var(--panel-secondary-color);
    border: solid;
    text-align: center;
}

.panel-groove {
    background: var(--primary-color);
    box-shadow: var(--shadow-primary);
    border: groove;
    text-align: center;
}

.panel-title {
    text-align: left;
}

.panel-content-primary {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    font-weight: bold;
    border: groove;
    border-color: var(--border-secondary-color);
}

.panel-content-secondary {
    display: flex;
    align-items: center;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.panel-content-bordered {
    display: flex;
    align-items: center;
    margin-top: 1vw;
    margin-bottom: 1vw;
    border-style: double;
    border-radius: 5px;
    border-width: thin;
    border-color: var(--ct-card-border-color);
}


/* custom display box */

.simple-panel {
    margin-top: 1vw;
    margin-bottom: 1vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--text-primary-color);
    background: var(--panel-third-color);
}

.custom-panel {
    margin-top: 1vw;
    margin-bottom: 1vw;
    height: 8vh;
    border-radius: 5px;
    text-align: center;
    background: var(--panel-secondary-color);
    color: var(--text-primary-color);
    box-shadow: var(--shadow-primary);
}

/* dispatch board  */
.bold-text {
    font-weight: bold;
}

.board-heading {
    text-align: center;
    font-weight: bold;
}

.board-sub-heading {
    text-align: center;

}

/* Nav bar css */

.nav-link:hover {
    color: var(--text-primary-color);
    background: var(--secondary-color);
    border-radius: 5px;
}


/* login css */

.login-container {
    margin-top: 100px;
    background: var(--panel-primary-color);
    box-shadow: var(--shadow-primary);
    border-radius: 10px;
    padding: 40px;
}

img.logo {
    max-height: 100px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.form-floating {
    background: var(--panel-primary-color);
    box-shadow: var(--shadow-primary);
}

img {
    border: none;
    display: block;
}


/* text colors */

a {
    color: var(--text-primary-color);
}

a:hover {
    color: var(--text-third-color);
}

.dropdown-menu a {
    color: var(--text-secondary-color);
}

.dropdown-menu a:hover {
    color: rgb(42, 42, 42);
    text-shadow: var(--shadow-primary);
}


/* table styling properties  */

.dataTables_filter label {
    display: none;
}

table.dataTable {
    margin-bottom: 1vw;
}

.table-primary {
    font-size: larger;
}

table th {
    cursor: pointer;
    white-space: nowrap;
}

.table-responsive {
    overflow-x: clip;
}

.sort-arrows {
    margin-left: 5px;
    font-size: 10px;
    opacity: 0.3;
    /* Hide arrows by default */
    transition: opacity 0.2s linear;
    /* Add a smooth transition for opacity changes */
}

.sort-arrows.up:before {
    content: "\25B2";
    /* Use an up arrow character instead of borders */
}

.sort-arrows.down:before {
    content: "\25BC";
    /* Use a down arrow character instead of borders */
}

.sort-arrows.up,
.sort-arrows.down {
    opacity: 1;
    /* Show current arrow when sorting */
}


/* pagination bar styling */

.pagination-panel {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--ct-body-color);
}

/* Dispatch board */

.kanban-board {
    display: flex;
    gap: 20px;
    /* Add space between columns */
    padding: 20px;
    background-color: #f0f2f5;
    /* Light background color for the board */
}

.kanban-column {
    width: 32%;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.kanban-column h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #dcdfe3;
    background-color: #f7f8fa;
    border-radius: 8px 8px 0 0;
}

.kanban-items {
    flex-grow: 1;
}

.kanban-item {
    margin-bottom: 10px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: grab;
}

.kanban-item p {
    margin: 0;
    font-size: 1em;
    color: #333;
    cursor: pointer;
}

.kanban-item:hover {
    background-color: #e6f7ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kanban-item:active {
    cursor: grabbing;
}


.kanban-info {
    margin-top: 10px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #dcdfe3;
    background-color: #fffbcc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
    position: relative;
    text-align: center;
}

.kanban-info::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.info-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.info-text strong {
    font-weight: bold;
    color: #2c3e50;
}

.separator {
    border: 1px solid #ddd;
    margin: 20px 0;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}


/* Buttons  */

button {
    transition: var(--transition-primary);
    box-shadow: var(--shadow-primary);
}

button:hover {
    box-shadow: var(--shadow-secondary);
}

.primary-button {
    margin-top: 1vw;
    margin-bottom: 1vw;
    text-align: center;
    color: var(--text-primary-color);
    font-weight: bolder;
    border-radius: 5px;
    height: 8vh;
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.primary-button:hover {
    background: var(--forth-color);
}

.action-button {
    text-align: center;
    color: var(--text-primary-color);
    font-weight: bolder;
    border-radius: 5px;
    border-color: var(--secondary-color);
    background: var(--secondary-color);
}

.action-button:hover {
    background: var(--forth-color);
}

.btn-close {
    box-shadow: none;
}


/* Style the button that opens the dropdown */

.dropdown-button {
    background: var(--panel-primary-color);
    color: var(--text-secondary-color);
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


/* Style the dropdown content (hidden by default) */

.dropdown-content {
    display: none;
    position: absolute;
    z-index: 1;
    min-width: 160px;
    right: 0;
    left: auto;
    top: calc(100%);
    box-shadow: var(--shadow-primary);
}


/* Style the buttons inside the dropdown */

.dropdown-content button {
    color: var(--text-secondary-color);
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: var(--panel-primary-color);
}


/* Change color of dropdown links on hover */

.dropdown-content button:hover {
    background: var(--panel-secondary-color);
}


/* Show the dropdown menu on hover */

.dropdown:hover .dropdown-content {
    display: block;
}


/* Change the background color of the dropdown button when the dropdown content is shown */

.dropdown:hover .dropdown-button {
    background: var(--panel-primary-color);
}


/* Style the popup */

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    color: var(--text-secondary-color);
    transition: var(--transition-secondary);
    justify-content: center;
    align-items: center;
}


/* Style the popup content */

.popup-content {
    background: var(--panel-primary-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow-primary);
    max-width: 400px;
    width: 90%;
}

.popup-content-wide {
    background: var(--panel-primary-color);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow-primary);
    max-width: 800px;
    width: 90%;
}


/* Style the form elements inside the popup */

.form-value-primary {
    font-weight: bolder;
    font-size: larger;
}


/* Style the form elements inside the popup */

.popup-form label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.popup-form select,
.popup-form input[type="number"],
.popup-form input[type="tel"],
.popup-form input[type="text"],
.popup-form input[type="date"],
.popup-form input[type="datetime-local"] {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--border-primary-color);
    border-radius: 5px;
    margin-bottom: 10px;
}

.popup-form button[type="submit"],
.popup-form button[type="button"] {
    background: var(--panel-secondary-color);
    color: var(--text-primary-color);
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    width: 100%;
}

.popup-form button[type="submit"]:hover,
.popup-form button[type="button"]:hover {
    background: var(--panel-secondary-color);
}

.form-row-col-6 {
    display: flex;
    justify-content: space-between;
}

.form-row-col-6 label,
.form-row-col-6 input {
    width: calc(50% - 10px);
    margin-right: 20px;
}

.form-row-col-6 input:last-child {
    margin-right: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin: 20px;
}


/* messages display  */

div.message {
    border: 2px groove var(--border-primary-color);
    color: var(--text-third-color);
    font-weight: bold;
    margin: 1em 0;
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--panel-secondary-color);
    border-radius: 4px;
    box-shadow: var(--shadow-primary);
    color: var(--text-secondary-color);
    font-size: 16px;
    padding: 1em 2em;
}


/* errors */

.error {
    color: var(--text-third-color);
    border: 2px groove var(--border-primary-color);
    margin: 1em 0;
    padding: 1em;
}

.error ul {
    padding-left: 2em;
}

@media print {
    .no-print {
        visibility: hidden;
    }

    .page-break {
        page-break-before: always;
    }

    header {
        display: none;
        position: fixed;
        top: 0;
    }

    .panel-content-primary {
        font-size: 8pt;
    }
}