table.dataTable {
    width: 100%;
}
div.dataTables_wrapper div.dataTables_length select {
    width: 25%;
}
.tabel2 {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.appButton {

}
.tabel2 th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
.link-button {
    background: none;  /* Fără fundal */
    border: none;      /* Fără bordură */
    color: #007bff;    /* Culoarea textului (similar cu un link) */
    text-decoration: underline; /* Text subliniat */
    cursor: pointer;   /* Cursorul devine pointer pentru interacțiune */
    padding: 0;       /* Fără margini interioare */
    font: inherit;     /* Folosește fontul părinte */
}

.link-button:hover {
    color: #0056b3; /* Culoare mai închisă la hover */
    text-decoration: underline; /* Păstrează sublinierea */
}

.tabel2 th {
    background-color: #f2f2f2;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
}

.tabel2 tr:nth-child(even) {
    background-color: #f8f8f8;
}

.tabel2 tr:hover {
    background-color: #ddd;
}

.tabel2 td {
    font-size: 14px;
}

.tabel2 .highlight {
    background-color: #ffc;
}
body {
    height: 100%;
    overflow-x: hidden;
}

.chart {
    width: 150px; 
    min-height: 150px;
  }
  .row {
    margin:0 !important;
  }
  .dataTables_filter input { width: 50px }


.checkbox-container {
    display: flex;
    flex-direction: row;
  }
  
  .checkbox-container label {
    margin-right: 20px; 
  }
  
  
  .page-header {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.breadcrumb-item {
    display: inline-block;
    margin-right: 10px;
}

.breadcrumb-item a {
    color: #007BFF;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-body h4 {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.text-center h3 {
    margin-bottom: 20px;
}

.success-message {
    color: green;
    font-weight: bold;
}
body {
    overflow-x: hidden;
}


/* Styling pentru grupul de butoane */
.btn-group .btn {
    margin-right: 0.5rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}
/* Styling pentru butoane */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Opțional: Aliniază butoanele la centru */
    margin-top: 15px;
}

.button-container .btn {
    flex: 1 1 auto; /* Permite butoanelor să se ajusteze în mod corespunzător */
}

@media (max-width: 576px) {
    .button-container {
        flex-direction: column; /* Pentru dispozitive foarte mici, butoanele vor fi pe rânduri diferite */
    }
}

/* Adaugă aceste stiluri în fișierul tău CSS pentru a gestiona submeniurile */
.nav-content .nav-content {
    padding-left: 20px;
}

.nav-content .nav-item .nav-link {
    display: flex;
    align-items: center;
}

.nav-content .nav-item .nav-link i {
    margin-right: 10px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.form-control-range {
    width: 70%;
}

#timer_minutes_number {
    width: 60px;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    .modal-content {
        padding: 15px;
    }

    .form-control-range {
        width: 100%;  /* Slider-ul să ocupe toată lățimea */
    }

    .btn-close {
        font-size: 1.5rem;  /* Mărire dimensiune X */
        padding: 0.5rem;
    }

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

    .modal-footer {
        display: flex;
        justify-content: center;
    }
}


.custom-button {
    background-color: #1E73BE;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-button:hover {
    background-color: #165a8e;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.custom-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, 0.5);
}

.badge {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
}

.badge.bg-primary {
    background-color: #1E73BE;
    color: #fff;
}

.badge.bg-light {
    background-color: #f1f1f1;
    color: #333;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header {
    background-color: #1E73BE;
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.card-header h4 {
    font-weight: 700;
    font-size: 24px;
}
/* Stilizare corporatistă pentru checkbox-uri */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #000; /* Negru pentru contur */
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.custom-checkbox:checked {
    background-color: #000; /* Culoare neagră la selectare */
    border-color: #000;
}

.custom-checkbox:checked::before {
    content: '\2713'; /* Semn de bifat */
    color: #fff;
    font-size: 14px;
    position: absolute;
    left: 2px;
    top: -1px;
}

.custom-checkbox:hover {
    border-color: #007bff; /* Albastru la hover */
    transform: scale(1.05);
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 5px #007bff; /* Shadow la focus */
}

/* Adăugăm câteva animații */
.btn-primary:hover {
    background-color: #0056b3;
    transition: background-color 0.2s ease;
}

.btn-danger:hover {
    background-color: #dc3545;
    opacity: 0.9;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Full-Screen Modals */
.modal-fullscreen {
    max-width: 100%;
    margin: 0;
    height: 100%;
}

.modal-content {
    border-radius: 0.5rem;
    background: #ffffff;
    height: 100%;
}

.modal-header {
    background-color: #343a40;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
}

/* Buttons */
.btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
}

/* Search Input */
input.form-control {
    background-color: #f8f9fa;
    transition: box-shadow 0.2s ease-in-out;
    border-radius: 50px;
}

input.form-control:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border-color: #80bdff;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .btn-sm {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }
}

/* Global mobile modal hard overrides for edge-to-edge (phones) */
@media (max-width: 576px) {
    /* Remove any outer spacing and rounding */
    .modal { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; }
    .modal .modal-dialog { margin: 0 !important; max-width: 100vw !important; width: 100vw !important; }
    .modal .modal-content { border-radius: 0 !important; border: 0 !important; }
    /* Make headers/footers flush with screen edges */
    .modal .modal-header, .modal .modal-footer { padding: 0 !important; }
    /* Avoid vertical centering on phone to prevent odd gaps */
    .modal .modal-body { padding-left: 0 !important; padding-right: 0 !important; justify-content: initial !important; }
}
/* Asigurăm alinierea uniformă pentru logs */
.log-info {
    font-size: 1rem;
    color: #007bff; /* Culori primare pentru modul */
}

.log-description {
    font-size: 0.9rem;
    color: #6c757d; /* Text gri pentru descriere */
    word-wrap: break-word;
}

.log-time {
    font-size: 0.8rem;
    color: #adb5bd; /* Timpul într-o nuanță de gri mai deschis */
}

.d-flex {
    justify-content: space-between; /* Asigură o distribuire uniformă între module, acțiune și descriere */
}

.mb-2 {
    margin-bottom: 0.5rem;
}
  /* Base styles for layout and cards */
  .transition-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.btn-outline-secondary:hover {
    transform: scale(1.05);
    background-color: #6c757d;
    color: #fff;
    transition: all 0.2s ease-in-out;
}

input.form-control, select.form-select {
    background-color: #f8f9fa;
    transition: box-shadow 0.2s ease-in-out;
}

input.form-control:focus, select.form-select:focus {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    border-color: #80bdff;
    outline: none;
}


/* Responsive improvements */
@media (max-width: 768px) {
    .row.g-2 > div {
        margin-bottom: 0.5rem;
    }

    h5.text-primary {
        font-size: 1.1rem;
    }

    .form-control, .form-select, .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Stiluri pentru antet */
.header {
    background-color: #f8f9fa;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stiluri pentru butonul de meniu lateral */
.toggle-sidebar-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Stiluri pentru meniul de profil */
.header-nav .nav-item {
    position: relative;
}

.header-nav .nav-link {
    font-size: 1.25rem;
    color: #495057;
    cursor: pointer;
}

.header-nav .nav-link:hover {
    color: #007bff;
}

/* Stiluri pentru dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* display: none;  <-- REMOVE this, Bootstrap handles show/hide */
}

.dropdown-item {
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    display: block;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Afișează dropdown-ul când este activ */
/* .dropdown-menu.show { display: block; }  <-- Eliminat, Bootstrap 5 controlează nativ */
#appButton {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

#appButton:hover {
    color: #0056b3;
    text-decoration: none;
}
      .card {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .card .btn {
            transition: transform 0.2s ease-in-out;
        }

        .card .btn:hover {
            transform: scale(1.05);
        }

        .container {
            max-width: 600px;
            margin: auto;
            padding: 20px;
        }