@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* :root {
    --base-clr: #11121a;
    --line-clr: #42434a;
    --hover-clr: #222533;
    --text-clr: #e6e6ef;
    --accent-clr: #5e63ff;
    --secondary-text-clr: #b0b3c1;
} */

:root {
    --base-clr: #f9fbfc;                
    --line-clr: #d9dce3;                
    --hover-clr: #e2e6f3; 
    --text-btn-clr:  #f9fbfc;           
    --text-clr: #1a1a1a;                
    --accent-clr: #0078d4;              
    --secondary-text-clr: #5f6b81;     
    --success-clr: #28a745;            
    --danger-clr: #dc3545;  
    --card-border-radius: 2rem;
    --border-radius-1: 0.4rem;
    --border-radius-2: 0.8rem;
    --border-radius-3: 1.2rem;
    --card-padding: 1.8rem;
    --padding-1: 1.2rem;
    --box-shadow: 0 2rem 3rem var(--base-clr);           
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5rem;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--base-clr);
    color: var(--text-clr);
    display: grid;
    grid-template-columns: auto 1fr;  
}

#sidebar {
    box-sizing: border-box;
    height: 100vh;
    width: 250px;
    padding: 5px 1em;
    background-color: var(--base-clr);
    background: transparent  10%;
    border-right: 1px solid var(--line-clr);   
    position: sticky;
    top: 0;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    text-wrap: nowrap;
    font-weight: 600;
}

#sidebar.close {
    padding: 5px;
    width: 60px;
}

#sidebar ul {
    list-style: none; 
}

#sidebar > ul > li:first-child {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    .logo {
         font-weight: 600;
    }
}

#sidebar .logo {
    font-size: 25px;
}

#sidebar img{
    margin-top: 13px;
}

#sidebar ul li.active a {
    color: var(--accent-clr);

    svg {
        fill: var(--accent-clr);
    }
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo {
    border-radius: 0.5em;
    padding: 0.85em;
    text-decoration: none;
    color: var(--text-clr);
    display: flex;
    align-items: center;
    gap: 1em;
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

#sidebar svg {
    flex-shrink: 0;
    fill: var(--text-clr);
}

#sidebar a span #sidebar .dropdown-btn span {
    flex-grow: 1;
}

#sidebar a:hover, #sidebar .dropdown-btn:hover {
    background-color: var(--hover-clr);
} 

#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: 300ms ease-in-out;

    > div {
        overflow: hidden;
    }
}

#sidebar .sub-menu.show {
    grid-template-rows: 1fr;
}

.dropdown-btn svg {
    transition: 200ms ease;
}

.rotate svg:last-child {
    rotate: 180deg;
}

#sidebar .sub-menu a {
    padding-left: 3.3em;
}

#toggle-btn {
    margin-left: auto;
    padding: 1em;
    border: none;
    border-radius: 0.5em;
    background: none;
    cursor: pointer;

    svg {
        transition: rotate 150ms ease;
    }
}

#toggle-btn:hover {
    background-color: var(--hover-clr);
}

main {
    padding: min(30px, 7%);
}

main p {
    color: var(--secondary-text-clr);
    margin-top: 5px;
    margin-bottom: 15px;
}

p {
    text-align: justify;
}


.container {
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 20px;
    padding: min(3em, 15%);

    h2, p {margin-top: 1em;}
}

@media(max-width: 800px) {
    body{
        grid-template-columns: 1fr;
    }
    main {
        padding: 2em 1em 60px 1em;
    }
    .container {
        border: none;
        padding: 0;
    }
    #sidebar {
        height: 60px;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--line-clr);
        padding: 0;
        position: fixed;
        top: unset;
        bottom: 0;

        > ul {
            padding: 0;
            display: grid;
            grid-auto-columns: 71.6px;
            grid-auto-flow: column;
            align-items: center;
            overflow-x: scroll;
        }

        ul li {
            height: 100%;
        }

        ul a, ul .dropdown-btn {
           width: 60px;
           height: 60px;
           padding: 0;
           border-radius: 0;
           justify-content: center; 
        }

        ul li span, ul li:first-child, .dropdown-btn svg:last-child {
            display: none;
        }

        ul li .sub-menu.show{
            position: fixed;
            bottom: 60px;
            left: 0;
            box-sizing: border-box;
            height: 60px;
            width: 100%;
            background-color: var(--hover-clr);
            border-top: 1px solid var(--line-clr);
            display: flex;
            justify-content: center;

            > div {
                overflow-x: auto;
            }

            li {
                display: inline-flex;
            }

            a {
              box-sizing: border-box;  
              padding: 1em;
              width: auto;
              justify-content: center;

            }
        }
    }
}

/* Homepage Buttons */
.cta-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}


/* Responsive tweaks for index.html homepage */

@media (max-width: 600px) {
  /* Stack CTA buttons vertically */
  .cta-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  /* Make buttons stretch full width */
  .cta-button,
  .ticket-button,
  .btn {
    width: 100%;
  }

  /* Adjust heading and paragraph sizes */
  h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    text-align: center;
  }

  main p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
  }

  /* Tighter container padding */
  .container {
    padding: 1em;
  }

  /* Responsive logo handling */
  #sidebar img,
  .logo img {
    max-width: 100%;
    height: auto;
  }
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    width: 180px;
    text-align: center;
    color: white;
    background-color: var(--accent-clr);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #4b50e6; /* Slightly darker accent */
    transform: translateY(-1px);
}

.cta-button:active {
    background-color: #3e43c9; /* Deeper tactile feedback */
    transform: scale(0.98);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  main p {
    font-size: 1rem;
    line-height: 1.6;
  }
}




/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card {
    border: 3px solid var(--accent-clr);
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    width: 250px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;    
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
}

.paragraph-font {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-text-clr);
    text-align: center;
}

#header-font {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-clr);
    text-align: left;
}

h3 {
    text-align: center;
}

.ticket-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    display: inline-block;
    width: 200px;
}

.ticket-search {
    display: inherit;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;    
    max-width: 800px

}
.ticket-search input {
    width: 500px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--line-clr);
    background-color: var(--base-clr);
    color: var(--text-clr);
    font-size: 1rem;
}
.ticket-search input:focus {
    border-color: var(--accent-clr);
    background-color: white;
}


.ticket-table-container {
    min-height: 100vh;
    padding: 2rem;
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 2rem;
    background: var(--base-clr); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dashboard-btn {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-btn button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    width: 150px;
    height: 40px;
}

/* Search Button (Accent Color) */
.search-button {
    background-color: var(--accent-clr);
}

.search-button:hover {
    background-color: #4b50e6; /* Slightly darker variant */
    transform: translateY(-1px);
}

.search-button:active {
    background-color: #3e43c9;
    transform: scale(0.98);
}

/* Reset Button (Subtle Danger) */
.search-container {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}

#ticketSearch {
  padding: 8px 12px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  
}

.reset-btn {
  margin-bottom: 20px;
  padding: 8px 20px;
  font-size: 1rem;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  width: 150px;
  transition: background-color 0.3s ease;
}

.reset-btn:hover {
  background-color: #d32f2f;
  transform: translateY(-1px);
}

.reset-btn:active {
    background-color: #d32f2f;
    transform: scale(0.98);
}

/* Reset Button (Subtle Danger) */
/* .edit-button {
    background-color: var(--accent-clr); 
}

.edit-button:hover {
    background-color: #4b50e6; 
    transform: translateY(-1px);
}

.edit-button:active {
    background-color: #3e43c9;
    transform: scale(0.98);
} */

/* Dashboard Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  td {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
  }

  td::before {
    content: attr(data-label); /* 🔥 This shows the label */
    font-weight: bold;
    color: #555;
  }
}

thead th {
    background-color: #f0f0f0;
    color: #333;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:hover {
      background-color: #f9f9f9;
    }

    .priority-low {
      color: #28a745 !important; /* green */
      font-weight: bold;
    }

    .priority-medium {
      color: #ffc107 !important; /* amber */
      font-weight: bold;
    }

    .priority-high {
      color: #fd7e14 !important; /* orange */
      font-weight: bold;
    }

    .priority-critical {
      color: #dc3545 !important; /* red */
      font-weight: bold;
    }

.table-header {
    font-weight: bold;
}

/* IT Support/Admin update ticket */

/* === MODAL OVERLAY === */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Dark transparent overlay */
}

/* === MODAL BACKDROP === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* === MODAL BOX === */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

/* Close Button */
.close-btn {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* Inputs + Textarea + Select */
.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* Submit Button */
.modal-content button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.modal-content button[type="submit"]:hover {
    background-color: #4b50e6;
    transform: translateY(-1px);
}

.modal-content button[type="submit"]:active {
    background-color: #4b50e6;
    transform: scale(0.98);
}

/* Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive layout tweaks */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        background: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        padding: 1rem;
    }

    td {
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }
}

span .header-row {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-clr);
    display: inline;
    padding: 0;
    text-align: center;
    width: 300px;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

/* Ticket Page */
.ticket-container, .asset-request-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 20px;
    padding: min(3em, 15%);
}

.form .input-box{
    width: 100%;
    margin-top: 20px;
}

.form .column {
    flex-direction: column;
}

@media (min-width: 768px) {
  .form .column {
    flex-direction: row;
    column-gap: 15px;
  }
}

.input-box .label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-clr);
}

.input-box input, .input-box select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--line-clr);
    background-color: var(--base-clr);
    color: var(--text-clr);
    font-size: 1rem;
    margin-top: 8px;
}

.input-box input:focus, .input-box select:focus {
    border-color: var(--accent-clr);
    outline: none;
}

.input-box input::placeholder, .input-box select::placeholder {
    color: var(--secondary-text-clr);
}

.button-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Shared ticket button style */
.ticket-button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: white; 
  background-color: var(--accent-clr); /* #5e63ff from your theme */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover and Active States */
.ticket-button:hover {
  background-color: #4b50e6; /* slightly darker variant */
  transform: translateY(-1px);
}

.ticket-button:active {
  background-color: #3e43c9; /* deeper blue */
  transform: scale(0.98);
}

  /* Responsive override for screens ≥ 640px (like sm:flex-row) */
@media (min-width: 640px) {
    .button-wrapper {
      flex-direction: row;
    }
  
    .ticket-button {
      width: auto;
    }
  }

/* Feedback Page */
.feedback-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 20px;
    padding: min(3em, 15%);
}

/* Asset Request Form  */

.asset-request-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    border: 1px solid var(--line-clr);
    border-radius: 1em;
    margin-bottom: 20px;
    padding: min(3em, 15%);
}

input, select, textarea {
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    padding: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }

.asset-request-container .column {
    display: flex;
    column-gap: 15px;
}

#ticket-description, #feedback {
    height: 200px;
    font-size: 1rem;
}

#start-date, #end-date {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--line-clr);
    background-color: var(--base-clr);
    color: var(--text-clr);
    font-size: 1rem;
    margin-top: 8px;
}
#start-date:focus, #end-date:focus {
    border-color: var(--accent-clr);
    outline: none;
}
#start-date::placeholder, #end-date::placeholder {
    color: var(--secondary-text-clr);
}
#start-date::-webkit-calendar-picker-indicator, #end-date::-webkit-calendar-picker-indicator {
    color: var(--text-clr);
}
#start-date::-webkit-inner-spin-button, #end-date::-webkit-inner-spin-button {
    display: none;
}
#start-date::-webkit-calendar-picker-indicator, #end-date::-webkit-calendar-picker-indicator {
    color: var(--text-clr);
}

/* Profile Page */
#settings {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.settings-button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  width: 250px;
  height: 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--accent-clr);
  color: white; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hover and active states */
.settings-button:hover {
  background-color: #4b50e6;
  transform: translateY(-1px);
}

.settings-button:active {
  background-color: #3e43c9;
  transform: scale(0.98);
}

.profile-content {
  padding: 1rem;
  background-color: transparent;
  border-radius: 12px;
  color: var(--text-clr); /* e.g., #e6e6ef */
  margin-top: 1rem;
}

/* Tab Panel visibility control */
.tab-panel {
  display:none; 
}

.tab-panel.active {
  display: block;
}

/* Overview stats section */
.overview-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: transparent;
  padding: 0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.overview-stats div {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-clr); /* e.g., #5e63ff */
}

.overview-stats span {
  color: var(--text-clr);
  font-weight: normal;
  margin-left: 0.25rem;
}

/* Overview links */
.overview-links a {
  text-decoration: none;
  color: var(--accent-clr);
  font-weight: 500;
  transition: color 0.3s ease;
}

.overview-links a:hover {
  color: #4b50e6;
  text-decoration: underline;
}

/* Profile details section */
#profile-details p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

#profile-details strong {
  color: var(--secondary-text-clr); /* e.g., #b0b3c1 */
}

/* Settings buttons already handled in previous response */

@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-name {
    font-size: 2rem;
  }

  .profile-role {
    font-size: 1.2rem;
  }

  .profile-image img {
    width: 150px;
    height: 150px;
    margin: 10px;
  }
}

.container {
  padding: 1.5rem;
}

.profile-container {
  background-color: transparent;
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-block;
  align-items: center;
  gap: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-image img {
  border-radius: 50%;
  border: 2px solid var(--accent-clr); /* Alicia accent color */
  object-fit: cover;
  margin: 25px;
  width: 300px;
  height: 300px;
}

.profile-info {
  padding: 20px;
  display: inline;
  color: var(--text-clr); /* Light text color from your theme */
}

.profile-name {
  display: flex;
  margin: 0;
  font-size: 3.5rem;
  font-weight: 700;
}

.profile-role {
  margin: 0;
  font-size: 2.5rem;
  color: var(--secondary-text-clr); /* #b0b3c1 */
}

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

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #0078d4;
}

.modal-content input[type="password"],
.modal-content input[type="file"],
.modal-content textarea {
  width: 100%;
  height: 40px;
  padding: 0;
  padding-left: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.modal-content label {
  display: flexbox;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: left;
}

.modal-content button {
  background-color: #0078d4;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #4b50e6;
  transform: translateY(-1px);
}

.modal-content button:active {
  background-color: #4b50e6;
  transform: scale(0.98);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #e00;
}


/* Activity Report */

.dashboard-container {
  padding: 2rem;
  background: #f9fbfc;
  font-family: "Poppins", sans-serif;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h3 {
  color: #0078d4;
  /* font-size: 30px; */
  margin: 0.4em;
}

.kpi-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kpi-value {
  font-size: 3rem;
  font-weight: bold;
  color: #0078d4;
}

.progress-bar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar .fill {
  height: 100%;
  background: #00bcd4;
}

@media (max-width: 768px) {
  .charts-section {
    grid-template-columns: 1fr;
  }
}

.charts-section {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 2rem;
}

.bar-chart-box,
.line-chart-box {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  /* margin-bottom: 2rem; */
}

.filter-row {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.severity-table {
  margin-top: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 10px;
}

.severity-table table {
  width: 100%;
  border-collapse: collapse;
}

.severity-table th, .severity-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: center;
}

/* Knowledge Base */

@media (max-width: 600px) {
  .kb-container {
    padding: 1rem;
  }

  h2 {
    font-size: 1rem;
  }

  #searchBox {
    font-size: 14px;
  }
}

 .kb-container {
      max-width: 900px;
      width: 100%;
      margin: auto;
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      display: contents;
    }
    /* h1 {
      text-align: center;
      color: #333;
      font-size: 1.8rem;
    } */
    h2 {
      color: #0077cc;
      cursor: pointer;
      display: flex;
      align-items: center;
      font-size: 1.2rem;
    }
    
    .knowledge-base {
      list-style-type: disc;
      padding-left: 20px;
    }
    
    .section {
      margin-bottom: 10px;
      border-bottom: 1px solid #ddd;
      padding-bottom: 10px;
    }
   
    .tips {
      background: #e8f4fc;
      padding: 15px;
      border-left: 5px solid #0077cc;
    }
    
    .content {
      display: none;
      padding-top: 10px;
    }

    .icon {
      margin-right: 10px;
      font-size: 18px;
      color: #0077cc;
    }

    #searchBox {
      width: 99%;
      padding: 10px;
      margin-bottom: 20px;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 16px;
    }

    .h3 {
        display: flex;
    } 
    
    /* @media (max-width: 600px) {
      .container {
        padding: 15px;
      }
      h1 {
        font-size: 1.5rem
      }
      h2 {
        font-size: 1rem;
      }
      #searchBox {
        font-size: 14px;
      }
    } */

    /* 🌐 Shared Responsive Enhancements for Ticket, Dashboard, Feedback Pages */
@media (max-width: 600px) {
  /* Stack form columns */
  .form .column,
  .asset-request-container .column {
    flex-direction: column;
    gap: 1rem;
  }

  /* Input, select, textarea width full */
  .input-box input,
  .input-box select,
  .input-box textarea {
    width: 100%;
    font-size: 1rem;
  }

  /* Button groups stack */
  .button-wrapper,
  .dashboard-btn {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-button,
  .dashboard-btn button {
    width: 100%;
  }

  /* Table overflow fix */
  .ticket-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Table rows stacking layout */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }

  /* Dashboard metric cards full width */
  .card {
    width: 100%;
    margin: 0.5rem 0;
  }

  .dashboard-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }
}