


/* Styling for the Bulk Actions Form */
.bulk-action-form {
    margin-top: 20px;
}

.form-actions-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.form-actions-bottom select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-actions-bottom .btn-apply {
    background-color: #007bff; /* A friendly blue */
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.form-actions-bottom .btn-apply:hover {
    background-color: #0056b3;
}

/* Updated Table Styling */
.data-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f4f6f9;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

.data-table td:last-child {
    text-align: center;
}

.data-table .btn-qr {
    background-color: #28a745; /* Green */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.data-table .btn-qr:hover {
    background-color: #218838;
}

.data-table .no-qr {
    color: #888;
}




/* Basic Styles */
:root {
  --primary-color: #005f73; /* Dark Teal */
  --secondary-color: #0a9396; /* Cyan */
  --accent-color: #e9d8a6; /* Light Sand */
  --text-color: #333;
  --bg-color: #f4f7f9;
  --card-bg: #fff;
  --border-color: #ddd;
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Container for the entire dashboard */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 250px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}

/* Collapse sidebar on small screens */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }
}

.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
  flex-grow: 1;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background-color: var(--secondary-color);
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2rem;
  color: var(--primary-color);
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-profile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-right: 10px;
}

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Data Table */
.data-table {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.data-table h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: #eef1f4;
  font-weight: bold;
}

.data-table tr:hover {
  background-color: #f9f9f9;
}






/* ======================== */
/* Footer Specific Styles */
/* ======================== */

.main-footer {
    background-color: var(--card-bg); /* Use the card background color */
    color: var(--text-color);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color); /* Add a subtle border */
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05); /* Add a subtle shadow */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.main-footer p {
    margin: 0;
}






/* ======================== */
/* Employee Dashboard Specific Styles */
/* ======================== */

/* General Layout Adjustment for a single card */
.dashboard-cards-single {
    margin-bottom: 30px;
}

.employee-info-card {
    text-align: center;
}

.employee-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.employee-info-card p {
    font-size: 1rem;
    margin: 5px 0;
}

.employee-info-card p strong {
    color: var(--secondary-color);
}

/* Action button in table */
.action-cell {
    text-align: center;
    width: 150px; /* Adjust width as needed */
}

.action-cell form {
    display: inline-block;
}

.btn-assign {
    padding: 8px 12px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-assign:hover {
    background-color: #087e83; /* Slightly darker cyan */
}

/* Form Section */
.form-section {
    padding: 30px;
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.styled-form .form-group input,
.styled-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.styled-form .form-group input:focus,
.styled-form .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.2);
}

.styled-form .btn-primary {
    width: auto;
    padding: 12px 25px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.styled-form .btn-primary:hover {
    background-color: #004d60;
}

/* Reusing existing .data-table for consistency */
/* Reusing existing .main-content for layout */
/* Reusing existing .dashboard-container for layout */




/* ======================== */
/* Profile Page Styles */
/* ======================== */

/* Profile Details Card */
.profile-details-card {
    padding: 20px 30px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: left;
}

.profile-info-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.profile-value {
    color: var(--text-color);
}

/* Change Password Card */
.change-password-card {
    margin-top: 30px;
    padding: 30px;
}

/* Message Boxes */
.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
}

.message-box.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}


/* Responsive adjustments */
@media (min-width: 600px) {
    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-info-item {
        padding: 15px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
    .profile-info-item:nth-child(2n) {
        border-right: none;
    }
    .profile-info-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}







/* ======================== */
/* Tickets Page Specific Styles */
/* ======================== */

.ticket-list-section {
    margin-top: 30px;
}

/* Status Badges for tickets */
.status-cell {
    width: 120px;
    text-align: center;
}

.status-cell span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
}

/* Ticket Status Colors */
.status-new {
    background-color: #3498db; /* Blue */
}

.status-in-progress {
    background-color: #f39c12; /* Orange */
}

.status-closed {
    background-color: #2ecc71; /* Green */
}

.status-resolved {
    background-color: #2ecc71; /* Green */
}

.status-on-hold {
    background-color: #e67e22; /* Carrot */
}

/* Reusing general form and table styles */
/* The .form-section, .styled-form, .form-group, and table styles from previous sections are used here. */




/* ======================== */
/* Employees Management Page Specific Styles */
/* ======================== */

.employee-list-section {
    margin-top: 30px;
}

/* Specific styling for the delete button */
.btn-delete {
    display: inline-block;
    padding: 8px 12px;
    background-color: #e74c3c; /* Red */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #c0392b; /* Darker red */
}

/* Adjustments for action cells */
.action-cell {
    white-space: nowrap; /* Prevents action links from wrapping */
}

/* Styling for the role select input */
.styled-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}




/* ======================== */
/* Admin Tickets Management Page Specific Styles */
/* ======================== */

.ticket-list-section {
    margin-top: 30px;
}

/* Specific styling for the table actions */
.ticket-list-section .action-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ticket-list-section .action-cell .update-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticket-list-section .status-select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Update and Delete Buttons */
.btn-update {
    padding: 8px 12px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-update:hover {
    background-color: #087e83;
}

.btn-delete {
    padding: 8px 12px;
    background-color: #e74c3c; /* Red */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Reusing status badge styles from employee dashboard */
.status-new { background-color: #3498db; }
.status-in-progress { background-color: #f39c12; }
.status-completed { background-color: #2ecc71; }




/* ======================== */
/* Items Management Page Specific Styles */
/* ======================== */

.item-list-section {
    margin-top: 30px;
}

/* Status Badges for items */
.status-available {
    background-color: #2ecc71; /* Green */
}

.status-assigned {
    background-color: #3498db; /* Blue */
}

/* Specific styling for action buttons */
.btn-qr {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f1c40f; /* Yellow */
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-qr:hover {
    background-color: #e5b60e; /* Darker yellow */
}

.no-qr {
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

/* Reusing action cell and delete button styles */
/* The .action-cell and .btn-delete from previous sections are used here. */


.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}


.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Specific styling for the reset form fields */
.form-wrapper input#password,
.form-wrapper input#confirm_password {
    margin-bottom: 1.5rem;
}

/* Style for the button */
.form-wrapper button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover state for the button */
.form-wrapper button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Form footer link styling */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .form-wrapper {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .form-wrapper h2 {
        font-size: 1.5rem;
    }
}