* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.1;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 86px;
}

header h1 {
    font-size: 2rem;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.navigation .user-menu {
    margin-left: auto;
    text-align: right;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

nav a:hover {
    background-color: var(--nav-hover);
    border-color: #b8c4d9;
    color: #000000;
}

nav h1 {
    margin-right: 20px;
    font-size: 1.5rem;
}



a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#ticketsTable a {
    color: #0056b3;
    /* Changed from black to a high contrast blue */
    font-weight: 500;
    /* text-decoration: underline; */
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
}

section a {
    font-size: 1.1rem;
    color: #4ab7ff;
    margin: 0 10px;
    text-decoration: none;
}

section a:hover {
    text-decoration: none;
    color: #030;
}

@media (max-width: 768px) {

    header {
        height: 16vh;
    }
    
    .navigation {
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav h1 {
        margin-bottom: 10px;
    }

    .navigation .user-menu {
        margin: 15px 0 0 0;
        text-align: center;
    }

    section {
        flex-direction: column;
    }

    section a {
        margin: 5px 0;
    }
}


form {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    /* font-weight: bold; */
    /* margin-bottom: 5px; */
    color: #333;
}

input[type="text"],
input[type="radio"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #2980b9;
    outline: none;
}

textarea {
    height: 150px;
    resize: vertical;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
}

legend {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

fieldset div {
    margin-bottom: 8px;
}

input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* Button System - Base Styles */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

/* Button Sizes */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-md {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

/* Button Colors */
.btn-primary {
    color: #f9f9f9;
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    color: #fff;
    background-color: #003e81;
    border-color: #2c3e50;
    text-decoration: none;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
    text-decoration: none;
}

.btn-success {
    color: #fff;
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    color: #fff;
    background-color: #2ecc71;
    border-color: #2ecc71;
    text-decoration: none;
}

.btn-danger {
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-danger:hover {
    color: #fff;
    background-color: #e74c3c;
    border-color: #e74c3c;
    text-decoration: none;
}

.btn-warning {
    color: #212529;
    background-color: #f39c12;
    border-color: #f39c12;
}

.btn-warning:hover {
    color: #212529;
    background-color: #f1c40f;
    border-color: #f1c40f;
    text-decoration: none;
}

.btn-info {
    color: #fff;
    background-color: #0277bd;
    border-color: #0277bd;
}

.btn-info:hover {
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
    text-decoration: none;
}

/* Button Styles */
.btn-outline-primary {
    color: #2980b9;
    background-color: transparent;
    border-color: #2980b9;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
    text-decoration: none;
}

.btn-outline-danger {
    color: #c0392b;
    background-color: transparent;
    border-color: #c0392b;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
    text-decoration: none;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Legacy compatibility */
button:hover,
input[type="submit"]:hover {
    background-color: #3498db;
}

input:invalid,
textarea:invalid {
    border-color: red;
}

input:valid,
textarea:valid {
    border-color: #2ecc71;
}

@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    label {
        font-size: 0.9rem;
    }

    input[type="text"],
    textarea {
        font-size: 0.9rem;
    }
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]+label {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}

input[type="checkbox"]+label p {
    padding-top: 4px;
}

input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="checkbox"]:checked+label::before {
    background-color: #2980b9;
    border-color: #2980b9;
}

input[type="checkbox"]:checked+label::after {
    content: '✔';
    position: absolute;
    left: 6px;
    top: 4px;
    font-size: 16px;
    color: white;
    transition: opacity 0.3s ease;
    opacity: 1;
}

input[type="checkbox"]:not(:checked)+label::after {
    opacity: 0;
}

input[type="checkbox"]+label:hover::before {
    border-color: #2980b9;
}

input[type="checkbox"]+label {
    font-size: 1rem;
    color: #333;
}

input[type="checkbox"]+label:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    input[type="checkbox"]+label {
        font-size: 0.9rem;
    }
}

footer {
    display: flex;
    height: 40px;
    align-content: center;
    align-items: center;
    justify-content: center;
}


main {
    min-height: calc(100vh - 126px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 0;
    position: relative;
}


main form {
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: inline-block;
    min-width: 135px;
}

form div {
    margin: 10px 0;
}

.tickets {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.ticket-info {
    margin-bottom: 30px;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: 150px 1fr 150px 1fr 150px 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.info-label {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #495057;
    font-size: 1.05rem;
}

.info-value {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    display: flex;
}

.ticket-notes {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
}

.notes-label {
    align-self: start;
}

.notes-value {
    min-height: 100px;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Responsive styles for ticket info */
@media (max-width: 1200px) {
    .ticket-info-grid {
        grid-template-columns: 150px 1fr 150px 1fr;
    }
}

@media (max-width: 768px) {
    .ticket-info-grid {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 480px) {
    .ticket-info-grid,
    .ticket-notes {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .info-label {
        margin-bottom: 0;
        border-radius: 4px 4px 0 0;
    }

    .info-value {
        margin-bottom: 10px;
        border-radius: 0 0 4px 4px;
    }
}

.tickets-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 1em;
}

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

.filter-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

#toggle-filters {
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#toggle-filters:hover {
    background-color: #5a6268;
}

#filter-icon {
    transition: transform 0.3s ease;
    display: inline-block;
    width: 14px;
    text-align: center;
}



#reset-filters {
    /* Secondary colour */
    color: #f6f6f6;
    background-color: #5d696a;
    border-color: #757878;
}

#reset-filters:hover {
    color: #fff;
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    text-decoration: none;
}

/* Action Buttons - Using our new button system */
.create-button,
.edit-button,
.status-button,
.back-button {
    /* Extend btn and btn-primary */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    margin: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
}

.create-button:hover,
.edit-button:hover,
.status-button:hover,
.back-button:hover {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
    text-decoration: none;
}

.close-button {
    /* Extend btn and btn-warning */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    margin: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.close-button:hover {
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
    text-decoration: none;
}

.delete-button {
    /* Extend btn and btn-danger */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    margin: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
}

.delete-button:hover {
    color: #fff;
    background-color: #a93226;
    border-color: #a93226;
    text-decoration: none;
}

/* Status styling */
.no-status {
    color: #9e2600;
}

.closed-ticket {
    color: #075e88;
}

/* Table Styles for Better Contrast */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    text-align: left;
}

table th {
    background-color: #e9ecef;
    /* Slightly darker background for headers */
    font-weight: bold;
    color: #212529;
}


.mt-2 {
    margin-top: .5rem!important;
}

.pt-2 {
    padding-top: .5rem!important;
}

/* DataTables specific styling */
/*  */
/* User Management Styles */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input:not([type="checkbox"]),
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--input-border, #ddd);
    border-radius: 4px;
    color: var(--input-text, #333);
    background-color: var(--input-bg, #ffffff);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.submit-button {
    background-color: #28a745;
}

.submit-button:hover {
    background-color: #218838;
}

.note {
    font-size: 0.9em;
    color: #495057;
    /* Darker gray for better contrast */
    margin-top: 5px;
    font-style: italic;
    font-weight: 500;
    /* Added font weight for better visibility */
}

.action-buttons {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.toggle-button {
    background-color: #6c757d;
}

.toggle-button:hover {
    background-color: #5a6268;
    text-decoration: none;
    color: white;
}

/* Dashboard Styles */
.dashboard-container {
    width: 98%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 15px;
}

.dashboard-container h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Summary Cards */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.card-content h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 5px 0 0;
}

/* Background Colors */
.bg-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.bg-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.bg-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
}

/* Chart Containers */
.dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns for better control */
    gap: 15px;
    margin-bottom: 20px;
}

.canvas {
    position: relative;
    height: 385px;
    max-width: 100%;
    max-height: calc(100% - 37px);
}

.chart-container {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    height: 481px;
    position: relative;
}

.chart-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4e73df;
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

/* Stats Grid */
.dashboard-stats-row {
    margin-bottom: 20px;
}

.stats-container {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stats-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4e73df;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-box {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Light Background Colors */
.bg-light-blue {
    background: #e1f0ff;
    color: #0f42b2;
}

.bg-light-green {
    background-color: #dcfce7;
    color: #15803d;
}

.bg-light-purple {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.bg-light-red {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Activity Lists */
.dashboard-activity-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns for better control */
    gap: 15px;
    margin-bottom: 20px;
}

.activity-container {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.activity-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4e73df;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: #e9ecef;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1rem;
}

.activity-details {
    flex: 1;
}

.activity-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.activity-count {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

/* Latest Items */
.dashboard-latest-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns for better control */
    gap: 15px;
    margin-bottom: 20px;
}

.latest-container {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.latest-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4e73df;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.latest-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.latest-header {
    padding: 7px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.latest-header h3 {
    margin: 0;
    font-size: 1rem;
    flex: 1;
    min-width: 150px;
}

.latest-header h3 a {
    color: #0056b3;
    font-weight: 600;
}

.latest-header h3 a:hover {
    text-decoration: underline;
}

.latest-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Priority Badges */
.priority-high {
    background-color: #ffdecd;
    color: #ca1212;
    /* font-weight: 800; */
}

.priority-medium {
    background-color: #FFE0B2;
    color: #7a3407;
    font-weight: 600;
}

.priority-low {
    background-color: #AED581;
    color: #0d3702;
    font-weight: 600;
}

/* Status Badges */
.status-open {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.status-in-progress {
    background-color: #8b5cf6;
    color: #ffffff;
    font-weight: 600;
}

.status-inspected {
    background-color: #E0F7FA;
    color: #045a65;
    font-weight: 600;
}

.status-booked-in {
    background-color: #FFF9C4;
    color: #5e5500;
    font-weight: 600;
}

.status-closed {
    background-color: #CDDC39;
    color: #135e03;
    font-weight: 600;
}

.status-ber {
    background-color: #ffc9c9;
    color: #a70707;
    font-weight: 600;
}

.status-no-status {
    background-color: #6b7280;
    color: #ffffff;
    font-weight: 600;
}

/* Role Badges */
.role-super-admin {
    background-color: #F8BBD0;
    color: #750000;
}

.role-admin {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.role-user {
    background-color: #e1f0ff;
    color: #1a56db;
}

/* Status Badges */
.status-active {
    background-color: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

.latest-footer {
    padding: 3px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #212529;
    /* Even darker gray for better contrast */
    font-weight: 600;
    /* Bolder text for better visibility */
    height: 30px;
}

.view-all {
    text-align: center;
    margin-top: 5px;
}

.view-all .btn {
    /* Already using .btn class, just add specific styling */
    background: #90CAF9;
    border-color: #2196F3;
    font-weight: 500;
    color: #05497a;
}

.view-all .btn:hover {
    color: #fff;
    background-color: #2e59d9;
    border-color: #2e59d9;
    text-decoration: none;
}

/* Dashboard Quick Links (Legacy) */
.dashboard-quick-links {
    margin-top: 30px;
}

.dashboard-quick-links h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.dashboard-quick-links ul {
    list-style: none;
    padding: 0;
}

.dashboard-quick-links li {
    margin-bottom: 10px;
}

.dashboard-quick-links a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.dashboard-quick-links a:hover {
    background-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .dashboard-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {

    .dashboard-charts-row,
    .dashboard-activity-row,
    .dashboard-latest-row {
        grid-template-columns: none;
        grid-template-areas:
            "a b"
            "c c";
    }

    .dashboard-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .dashboard-charts-row,
    .dashboard-activity-row,
    .dashboard-latest-row {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        height: 395px;
    }
}

@media (max-width: 480px) {
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
}

/* Home Page Styles */
.home-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.home-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.home-container p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 10px 0;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Allow buttons to wrap on small screens */
}

.action-button {
    /* Extend btn, btn-primary, and btn-lg */
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
    border-radius: 0.3rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.action-button:hover {
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
    text-decoration: none;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
}

.user-menu p {
    margin: 0;
    font-size: 0.9rem;
}

.user-menu a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-menu a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* My Account Styles */
.account-info {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.account-info h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.account-info p {
    margin: 10px 0;
}

.button-group {
    /* Extend btn-group */
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: stretch;
    justify-content: center;
}

.status-history {
    margin-top: 30px;
    margin-bottom: 30px;
}

.logs-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 10px;
    clear: both;
}

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

.logs-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

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

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

.ticket-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}


textarea#notes,
input#title {
    width: calc(100% - 10px);
}

fieldset {
    padding: 20px;
}

/* Error Pages Styling */
.error-container {
    width: 95%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-container h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-actions {
    margin-top: 30px;
}