﻿.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.slider.round {
    border-radius: 20px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.action-cell {
    white-space: nowrap;
}

/* ── Icon buttons (default, md+ screens) ── */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    transition: transform .15s, box-shadow .15s, filter .15s;
    text-decoration: none;
}

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.18);
        filter: brightness(1.1);
    }

    .btn-action:active {
        transform: translateY(0);
        box-shadow: none;
    }

.btn-edit {
    background: #f59e0b;
    color: #fff;
}

.btn-delete {
    background: #ef4444;
    color: #fff;
}

.btn-print {
    background: #3b82f6;
    color: #fff;
}

/* Label buttons for larger displays */
.btn-action-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    border: none;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform .15s, box-shadow .15s, filter .15s;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-action-label:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.18);
        filter: brightness(1.08);
        color: #fff;
    }

    .btn-action-label.btn-edit {
        background: #f59e0b;
        color: #fff;
    }

    .btn-action-label.btn-delete {
        background: #ef4444;
        color: #fff;
    }

    .btn-action-label.btn-print {
        background: #3b82f6;
        color: #fff;
    }

/* Show label buttons on xl+, icon buttons on smaller */
.actions-icon {
    display: inline-flex;
    gap: 6px;
}

.actions-label {
    display: none;
    gap: 6px;
}

@media (min-width: 1200px) {
    .actions-icon {
        display: none;
    }

    .actions-label {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .actions-icon {
        display: none !important;
    }

    .actions-dropdown {
        display: inline-block !important;
    }
}

/* Dropdown (xs screens) */
.actions-dropdown {
    display: none;
}

.search-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

    .autocomplete-dropdown.show {
        display: block;
    }

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item-search {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item-search:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #fffcdc;
}

.autocomplete-item-search:hover,
.autocomplete-item-search.active {
    background-color: #fffcdc;
}

.autocomplete-item-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
}

.autocomplete-item-url {
    font-size: 0.875rem;
    color: #6c757d;
}

.autocomplete-item-search-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.25rem;
    margin-top: 4px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

.extraRow {
    height: 30px;
}

.extraCell {
    min-width: 80px;
}

    .extraCell span {
        font-weight: bold;
    }

label {
    font-weight: bold;
}

.tab-content {
    padding: 8px;
}

a[disabled] {
    pointer-events: none;
}

.RemoveButton {
    color: red !important;
    border-radius: 8px !important;
    padding: 5px !important;
}

textarea {
    resize: none;
}

aside {
    padding-bottom: 18px;
}

body {
    font-size: 0.8rem !important;
}

.row {
    margin-bottom: 15px;
    line-height: 2.5;
}

#wrapper {
    height: 100vh;
}

#sidebar-wrapper {
    width: 420px; /* sidebar width */
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 8px;
}

.navBar {
    background-color: lightskyblue;
}

a.active {
    background-color: khaki;
    border-radius: 16px;
}

a.navbar-brand {
    color: red;
}

.GreenText {
    color: green !important;
}

.RedText {
    color: red !important;
}

.card-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background-color: #e9ecef;
    height: fit-content;
}

.status-active {
    background-color: #0d6efd;
    color: white;
}

.status-idle {
    background-color: #6c757d;
    color: white;
}

.status-maintenance {
    background-color: #ffc107;
    color: white;
}

.calendar-box {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.calendar-selected {
    background-color: #abcdef !important;
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
}

}

.schedule-card {
    border: 2px solid #ffbf00;
    background: #fffde7;
    border-radius: 10px;
}

.active-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.btn-start {
    background-color: #04b4d8;
    color: white;
    width: 100%;
}

.badge-routine {
    background: #2d77ff;
    height: fit-content;
}

.panel-header {
    background: #d8a300;
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
}

.panel-container {
    background: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
}

.scheduledCard {
    border: 2px solid navy;
    background: #e6ffed;
    border-radius: 10px;
}

.FilterBox {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
}

.FormDiv {
    margin-bottom: 8px;
}

.Height100 {
    height: 100px;
}

h1.text-center {
    color: darkgreen;
    margin-bottom: 30px;
}

.Today {
    color: brown;
    font-size: larger;
    font-weight: bold;
    margin-right: 10px;
}

.CriticalTask {
    background-color: #f4cccc !important;
    color: navy !important;
}

.px16 {
    width: 16px;
    height: 16px;
}

.IsPast {
    color: red !important;
}

#wrapper {
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    transition: margin 0.3s ease;
}

#wrapper.toggled .sidebar {
    margin-left: -240px;
}

#page-content-wrapper {
    width: 100%;
}

.list-group-item {
    border: none;
}

    .list-group-item.active {
        background-color: #d0d0d0;
        color: #000;
    }

.sidebar-section {
    margin-left: 10px;
    margin-top: 15px;
    color: navy;
    font-weight: bold;
}

.me-2 {
    width: 26px;
    height: 26px;
}

html, body {
    height: 100%;
}

/* Optional: smoother scrolling */
#sidebar-wrapper {
    scrollbar-width: thin; /* Firefox */
}

.red-badge {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 8px;
}

.green-badge {
    background-color: green;
    color: white;
    padding: 5px;
    border-radius: 8px;
}

.orange-badge {
    background-color: orange;
    color: white;
    padding: 5px;
    border-radius: 8px;
}

.blue-badge {
    background-color: blue;
    color: white;
    padding: 5px;
    border-radius: 8px;
}

.btn-add {
    background: #222;
    color: #fff;
    border-radius: 6px;
    width: 60px;
}

    .btn-add:hover {
        background: silver;
    }

.table td, .table th {
    vertical-align: middle;
}

.delete-btn {
    cursor: pointer;
    color: #dc3545;
}

.ItemsForm {
    border-radius: 8px;
    border: 2px solid navy;
}

.view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 4px 10px;
    border: 3px solid #000;
    background: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .tab-button.active {
        background: #6a329f;
        color: white;
    }

    .tab-button:hover {
        background: #c9bce8;
        color: navy;
    }

.content-container {
    border: 3px solid #000;
    padding: 20px;
    min-height: 400px;
    background: white;
}

.photo-view {
    display: none;
}

    .photo-view.active {
        display: block;
    }

.table-view.active {
    display: block;
}

.table-view {
    display: none;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.employee-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.module-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

    .module-card h5 {
        font-size: 0.88rem;
    }

.employee-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #666;
}

.module-photo {
    width: 83px;
    height: 83px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #666;
}

.sidebar-section-header {
    cursor: pointer;
    user-select: none;
    display: block;
}

.sidebar-section-content {
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .sidebar-section-content.collapsed {
        max-height: 0;
    }

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sidebar-section-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

dt {
    text-align: left;
    border: 1px solid black;
    margin-top: 4px !important;
}

dd {
    text-align: left;
}

.ModuleImage {
    width: 60%;
    height: 60%;
    border-radius: 8px;
}

select.form-control {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.card-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: .85rem;
    width: 100%;
    border-top: 1px solid #f1f5f9;
    padding-top: .85rem;
}

.btn-card-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 0;
    border-radius: 9px;
    border: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    color: #fff;
    transition: transform .15s, box-shadow .15s, filter .15s;
    cursor: pointer;
}

    .btn-card-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.18);
        filter: brightness(1.1);
        color: #fff;
    }

.btn-card-edit {
    background: #f59e0b;
}

.btn-card-delete {
    background: #ef4444;
}

.btn-card-print {
    background: #3b82f6;
    max-width: 38px;
    flex: 0 0 38px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #fff1f1;
}
.logo{
    width:12%;
    margin-right:5px;
}

.inactive_hint {
    background-color: #e83d3d;
    color: white;
    border-radius: 6px;
    padding: 3px;
}