/* =========================================
   Device Table Wrapper for Sticky Headers
========================================= */
.device-table-wrapper {
    overflow-y: auto;
    height: calc(105vh - 280px); /* Adjust 300px based on what’s above the table */
    border: 1px solid #ccc;
    background: white;
}

.device-table thead th {
  position: sticky;
  top: 0;
  background-color: #007bff;
  z-index: 2;
  padding:5px;

}

/* Sticky filter (second) header row for device-table */
.device-table thead.filter-header th {
    z-index: 1;
}
.recent-activity-graph-combo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-top: 100px;
}

.recent-activity-graph-combo .log-table {
    flex: 1 1 600px;
    min-width: 300px;
    max-width: 100%;
  }

  .recent-activity-graph-combo .dashboard-right {
    flex: 1 1 300px;
    min-width: 250px;
    max-width: 400px;
  }
.log-table-scrollable {
    max-height: 800px;
    overflow-y: auto;
}

.log-table-wrapper table thead th {
    position: sticky;
    top: 0;
    background-color: #28a745;
    z-index: 2;
}

#deviceLogTable thead th {
    background-color: #28a745; /* match device log table header */
}
.log-scroll-container {
    max-width: 100%;
    padding-bottom: 20px;
}

.log-tables-scrollable {
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-width: 1200px;
}

.log-table-wrapper {
    flex: 1 1 50%;
    min-width: 550px;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    font-size: 2rem;
    text-align: center;
    color: #333;
    margin-top: 40px;
}

h2 {
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0;
    
}

h4{
    text-align: center;
    font-size: 2em;
    margin-top: 10px;
}

/* =========================================
   Top Navbar
========================================= */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.top-navbar .logo {
    height: 40px;
    margin-right: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-navbar input {
    padding: 8px;
    width: 250px;
    border: none;
    border-radius: 5px;
}

/* =========================================
   Profile Dropdown
========================================= */
.profile-dropdown {
    position: relative;
    margin-right: 30px;
}

.profile-btn {
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
}

.profile-btn:hover,
.profile-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.profile-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.profile-dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Toggle visibility */
.profile-dropdown.active .profile-dropdown-content {
    display: block;
}
/* =========================================
   Sidebar
========================================= */
/* Sidebar Styles - Block, Centered Links */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100% - 60px);
    background: #2d3e50;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}

.sidebar a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 15px;
    margin: 8px 0;
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #007bff;
    color: white;
}

.sidebar a i {
    font-size: 16px;
}

.dropdown {
    position: relative;
    display: block;
}

/* Dropdown - Centered and Block in Sidebar */
.dropdown-btn {
    background: none;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
    border-radius: 8px;
    font-weight: 500;
    margin: 8px 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Only the Assets dropdown (for Laptops) should be wider */
.laptops-dropdown {
    width: 230px;
    box-sizing: border-box;
}

.dropdown-btn:hover,
.dropdown.open .dropdown-btn {
    background-color: #007bff;
    color: white;
    width: 230px; /* match .laptops-dropdown width */
    box-sizing: border-box;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    background: #445e79;
    align-items: flex-start;
    width: 100%;
    border-radius: 8px;
    margin-left: 0;
    margin-top: 2px;
    padding: 0;
}

.dropdown.open .dropdown-content {
    display: flex !important;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 15px;
    margin: 8px 0;
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px
}

.dropdown-content a:hover {
    background-color: #007bff;
    color: white;
}

/* =========================================
   Main Content
========================================= */
.main-content {
    margin-left: 220px;/* Hide checkboxes by default */
.delete-checkbox {
    display: none;
}

/* Show checkboxes when body has .editing-mode */
.editing-mode .delete-checkbox {
    display: inline-block;
    margin-right: 6px;
    transform: scale(1.2);
    cursor: pointer;
}
    padding: 20px;
}

.asset-content {
    margin-left: 230px;
    padding: 20px;
    overflow-x: auto;
}

/* =========================================
   User Content
========================================= */
.asset-content-user {
    padding: 20px;
    padding-top: 10px;
    overflow-x: auto;
}
.create-user-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 14px;
}

.create-user-btn:hover {
    background-color: #0056b3;
}

.edit-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.edit-btn:hover {
    background-color: #218838;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.delete-btn:hover {
    background-color: #c82333;
}

.import-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.import-btn:hover {
    background-color: #0056b3;
}

/* =========================================
   Dashboard Cards - Enhanced Layout
========================================= */

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 2.5vw;
    border-radius: 10px;
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 200px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
    margin: 10px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Status Colors */
.card.total           { background-color: #343a40; }
.card.active          { background-color: #28a745; }
.card.decommissioned  { background-color: #6c757d; }
.card.lost            { background-color: #dc3545; }
.card.pending         { background-color: #ffbb00; }
.card.shelf           { background-color: #17a2b8; }

/* Card Text */
.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.card p {
    font-size: 1.8rem;
    margin: 0;
    color: #ffffff;
}

.device-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #007bff;
    height: auto;
}

.device-table th {
    background: #007bff;
    color: white;
    text-align: left;
    padding-top: 10px;
}

.device-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 0.85em;
}

.device-table tr:hover {
    background: #f1f1f1;
}

#log-header-row th {
    padding: 10px;
}

#log-header-row {
    margin-top: 0;
    padding-top: 0;
}

/* Highlight rows for missing employees in audit table */
.missing-employee {
    background-color: #ffcccc !important;
}

th.sortable {
    cursor: pointer;
}

th.sortable::after {
    content: " ⇅";
    font-size: 0.8em;
    opacity: 0.6;
    position: absolute;
    right: 5px;
}

th.sortable.asc::after {
    content: " ↑";
    opacity: 1;
}

th.sortable.desc::after {
    content: " ↓";
    opacity: 1;
}

/* Alternating row background colors */
.device-table tbody tr:nth-child(odd) {
    background-color: #eaf4ff;
}

.device-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Override hover to match your theme */
.device-table tbody tr:hover {
    background-color: #eaf4ff;
    transition: background-color 0.2s;
}

#employee-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    padding: 10px;
    border: 2px solid #007bff;
    height: auto;
}

#employee-table th {
    background: #007bff;
    color: white;
    padding: 10px;
    text-align: left;
}

.create-device-btn{
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.create-device-btn:hover {
    background-color: #0056b3;
}

.edit-mode-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.edit-mode-btn:hover {
    background-color: #218838;
}

.delete-checkbox {
    display: none;
}

.editing-mode .delete-checkbox {
    display: inline-block;
    margin-right: 6px;
    transform: scale(1.2);
    cursor: pointer;
}


/* =========================================
   Clickable Row Behavior in Edit Mode
========================================= */
/* Block row clicks in edit mode but allow inputs inside */
.editing-mode .clickable-row {
    pointer-events: auto;      /* Let child elements get pointer events */
    opacity: 0.8;
}

.editing-mode .clickable-row {
    pointer-events: auto;
}

.editing-mode .clickable-row td {
    pointer-events: auto;
}

.editing-mode .clickable-row input,
.editing-mode .clickable-row select,
.editing-mode .clickable-row textarea {
    pointer-events: auto;
}

.editing-mode .clickable-row td input,
.editing-mode .clickable-row td select,
.editing-mode .clickable-row td .inline-edit-input,
.editing-mode .clickable-row td .inline-edit-select {
    pointer-events: auto;      /* Re-enable interactions for form controls */
    cursor: pointer;
}

.edit-only {
    display: none;
}

.editing-mode .edit-only {
    display: table-cell;
}
/* =========================================
   Column Selector Modal Styles
========================================= */







.user-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 2px solid #28a745;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.user-table th {
    background: #28a745;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #1e7e34;
    cursor: pointer;
}

.user-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.user-table tr:nth-child(odd) {
    background-color: #f1f1f1;
}

.user-table tr:hover {
    background-color: #e8f5e9 !important;
    transition: 0.2s ease-in-out;
}

.user-table th.sortable::after {
    content: " ⇅";
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 8px;
}

.user-table th.sortable.asc::after {
    content: " ↑";
    opacity: 1;
}

.user-table th.sortable.desc::after {
    content: " ↓";
    opacity: 1;
}

/* =========================================
   Device Details Page Styles
========================================= */
.device-details-container {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.device-details-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;
}

.section-title {
    margin-top: 10px;
    font-size: 20px;
    color: #444;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.device-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr ;
    gap: 20px 30px;
    margin-top: 20px;
}

.device-details-grid label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.device-details-grid div {
    margin-bottom: 15px;
}

.back-link {
    margin-top: 30px;
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons a {
    text-align: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.action-buttons .edit-btn {
    background-color: #28a745;
}

.action-buttons .edit-btn:hover {
    background-color: #218838;
}

.action-buttons .delete-btn {
    background-color: #dc3545;
}

.action-buttons .delete-btn:hover {
    background-color: #c82333;
}

.edit-columns-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.edit-columns-btn:hover {
    background-color: #0056b3;
}

/* =========================================
   Modal Styles
========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px !important;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 300px;
    margin-left: 100px;
}

.modal-content {
    position: relative;
}

.modal .close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 20px;
    cursor: pointer;
}

.modal input,
.modal select,
.modal button {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
}

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

.create-device-modal {
    max-width: 95%;
    width: 1080px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: center;
    display: flex;
    flex-direction: column;

}

.create-device-modal h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.create-device-modal form input,
.create-device-modal form select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.create-device-modal form button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}

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

/* =========================================
   Device Details Page - Side by Side
========================================= */
.side-by-side-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
}

.device-details-grid {
    flex: 1 1 calc(50% - 20px);
    min-width: 300px;
    padding: 20px;
    background: #fff;
}

.device-details-grid h3.section-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.device-details-grid div {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 0;
}

.device-details-grid label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    min-width: 140px;
}

/* =========================================
   Login Form Styles
========================================= */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background-color: #f4f4f4;
    padding: 20px;
}

.login-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    text-align: center;
    margin-bottom: 10px;
}

.login-input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-btn {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0056b3;
}

.login-error {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px; 
    margin-bottom: 20px; 
}


//* =========================================
   Login/Register Modal Styles
========================================= */
.login-modal,
.register-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 400px;
    min-width: 400px;
    display: block; /* 🚨 NOT flex! */
}

/* Form inside modals */
.login-form,
.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.login-form h2,
.register-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.login-form label,
.register-form label {
    font-weight: bold;
    color: #444;
}

/* Inputs and Buttons */
.login-form input,
.register-form input,
.login-form button,
.register-form button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.login-form input:focus,
.register-form input:focus {
    border-color: #007bff;
}

.login-form button,
.register-form button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

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


.registration-success {
    text-align: center;
    color: #28a745; /* green success color */
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
}



/* Error message */
.login-error {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* Extra buttons below the form */
.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0px;
}

/* Back to Login / Register Link */
.register-link {
    text-align: center;
    margin-top: 0px;
}

.login-btn,
.register-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-top: 0px;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.login-btn:hover,
.register-btn:hover {
    background-color: #0056b3;
}


/* =========================================
   Filters Container Styles
========================================= */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    border-radius: 10px;
    align-items: center;
    padding-top: 40px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filters input[type="text"],
.filters select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    box-sizing: border-box;
}

.filters input[type="text"]:focus,
.filters select:focus {
    border-color: #007bff;
    outline: none;
}

.filters select {
    appearance: none; /* Hide default arrow in some browsers */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    min-width: 180px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    transition: border-color 0.2s;
}

.filters select:focus {
    border-color: #007bff;
    outline: none;
}


/* =========================================
   Responsive Fixes
========================================= */
@media screen and (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
    }

    .asset-content,
    .device-details-container {
        margin-left: 0;
        padding: 15px;
    }

    .dashboard-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .device-details-grid {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 480px) {
    .top-navbar input {
        width: 100%;
    }

    .sidebar a {
        padding: 5px;
    }

    .sidebar {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}
@media screen and (max-width: 320px) {
    .top-navbar input {
        width: 100%;
    }

    .sidebar a {
        padding: 5px;
    }

    .sidebar {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
    .login-form {
        padding: 20px 15px; /* optional tweak */
        max-width: 95%;
    }
}
/* Modal Header Style */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Import Modal Styles */
#importLaptopModal .modal-header h2 {
    margin: 0;
}

#closeImportLaptopModal {
    font-size: 24px;
    cursor: pointer;
}

#importLaptopModal .modal-content form > div {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* =========================================
   Log Tables Side-by-Side Layout
========================================== */
.log-tables-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.log-table {
    min-width: 300px;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

.log-table h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}
/* Log Page Wrapper Styles */
.log-page-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

/* Import CSV Modal Improvements */
#importLaptopModal .modal-content {
    max-width: 650px;
    width: 90%;
    padding: 25px 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#importLaptopModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#importLaptopModal .modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

#closeImportLaptopModal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

#importLaptopModal input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
}

#importLaptopModal button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#importLaptopModal button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Refined Import Modal Styling */
#importLaptopModal .modal-content {
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#importLaptopModal .modal-content h2 {
    font-size: 1.4rem;
    color: #333;
}

#importLaptopModal .modal-content input[type="file"] {
    margin: 10px 0 20px;
}

#importLaptopModal .modal-content button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

#importLaptopModal .modal-content button:hover {
    background-color: #0056b3;
}
/* Import CSV Modal Styling */
#importLaptopModal .modal-content {
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#importLaptopModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#importLaptopModal .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

#closeImportLaptopModal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

#importLaptopModal input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
}

#importLaptopModal button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#importLaptopModal button[type="submit"]:hover {
    background-color: #0056b3;
}
.laptop-modal-content-wrapper {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px !important;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 650px;
    margin-left: 100px;
}

.laptop-modal-content {
    position: relative;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.laptop-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.laptop-modal .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

#closeImportLaptopModal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.laptop-modal input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.laptop-modal button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.laptop-modal button[type="submit"]:hover {
    background-color: #0056b3;
}
.laptop-column {
    flex: 1;
    min-width: 300px;
}

/* Modal Header Style for Import Laptop Modal */
.laptop-modal-header {
    justify-content: space-between;
    align-items: center;
}
/* Modal styling for create-device-modal */
#create-device-modal.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 500px;
}

#create-device-modal .laptop-modal-content {
    position: relative;
    max-width: 600px;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}
/* Column Selector Modal Styles */
#column-selector {
    display: none;
    padding: 10px;
    width: 600px;
    max-width: 95%;
}

#column-selector .laptop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#column-form {
    text-align: left;
    
}

#column-form > div {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

#column-form button {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    margin: 10 0 0 0;
    font-size: 16px;
}

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

#column-selector .laptop-modal-content {
    max-width: 100%;
    width: 90%;
}

#cancel-edit-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
#cancel-edit-btn:hover {
    background-color: #c82333;
}

#undo-delete-btn {
    background-color: #ffc107;
    color: #212529;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#undo-delete-btn:hover {
    background-color: #e0a800;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.log-tables-scrollable {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.log-table-wrapper {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.log-table-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.log-scroll-container {
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 20px;
}



.missing-employee {
    background-color: #ffcccc !important;
}

/* =========================================
   Audit Laptop Modal File Input Styling
========================================= */
#auditLaptopModal input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#auditLaptopModal input[type="file"]:hover {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

#auditLaptopModal button#runAuditBtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#auditLaptopModal button#runAuditBtn:hover {
    background-color: #0056b3;
}

.filter-header th {
    margin: 0 !important;
    border-top: none;
    /* background: #007bff;  Removed to avoid clashing colors */
    color: white;
    padding-bottom: 10px;
}

#logEventModal .laptop-modal-content {
    width: 1000px;
    height: 775px;
    max-width: none;
    max-height: none;
    padding: 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    gap: 30px;
    align-items: stretch;
}

#logEventModal .laptop-modal-content > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

#logEventModal .laptop-modal-content .log-table-scrollable {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
    max-height: none;
    height: 640px;
    overflow-y: auto;
}


/* Improved Log Event Modal Form Styling */
#logEventModal .laptop-modal-content form {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 20px;
    height:600px;
}

#logEventModal .laptop-modal-content form label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
    color: #333;
}

#logEventModal .laptop-modal-content form select,
#logEventModal .laptop-modal-content form textarea {
    margin-top: 6px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

#logEventModal .laptop-modal-content form textarea {
    resize: vertical;
    height: 300px;
}

#logEventModal .laptop-modal-content form button[type="submit"] {
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#logEventModal .laptop-modal-content form button[type="submit"]:hover {
    background-color: #0056b3;
}

#logEventModal .laptop-modal-content .device-table {
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
}

#logEventModal .laptop-modal-content .device-table th,
#logEventModal .laptop-modal-content .device-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: #333;
}

#logEventModal .laptop-modal-content .device-table thead th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}
#logEventModal .laptop-modal-content h2,
#logEventModal .laptop-modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}
/* =========================================
   Dashboard Two-Column Layout
========================================= */
.dashboard-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px;
    
}

.dashboard-left {
    flex: 1;
}

.dashboard-right {
    width: 400px;
}

.recent-activity-graph-combo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2vw;
    margin-top: 2vw;
  }

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.activity-table thead {
    background-color: #e6f0ff;
}

.activity-table th,
.activity-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.activity-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.activity-table tbody tr:hover {
    background-color: #f1f1f1;
}
.dashboard-graph {
    padding: 2vw;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

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

/* Enhanced dashboard-left as a clean content box */
.dashboard-left {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    flex: 1 1 60%;
}

.dashboard-right {
    flex: 1 1 35%;
    max-width: 620px;
}
.recent-activity-graph-combo .log-table th {
  padding: 10px;
}
.recent-activity-graph-combo .log-table table.device-table {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  
}
/* =========================================
   Column Toggle Button Styles
========================================= */
.column-toggle-btn {
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
  }

.column-toggle-btn:hover {
    background-color: #ddd;
}

.column-toggle-btn.active {
    background-color: #28a745; /* Green when active */
    color: white;
    border: 2px solid #28a745;
}
