/* Start of Css Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: rgb(17, 25, 40);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

main {
    padding-top: 5rem;
}

:root {
    --primary-green: #7eba2c;
    --secondary-green: #7eba2c;
    --light-green: #7eba2c;
    --accent-green: #7eba2c;
    --bg-dark: rgb(17, 25, 40);
    --bg-darker: rgb(17, 25, 40);
    --bg-light: rgb(17, 25, 40);
    --hover: rgb(27, 38, 60);
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light-gray: #999999;
    --border-color: #555555;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--light-green);
}

.link {
    color: var(--secondary-green);
    font-weight: 500;
}

.link:hover {
    color: var(--light-green);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* End of Css Reset */

/* Start of Navbar */
.navbar {
    background: var(--bg-darker);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-green);
}

.nav-brand i {
    margin-right: 0.5rem;
    font-size: 1.75rem;
}

.nav-menu {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--hover);
    color: var(--text-white);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    text-align: center;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background: var(--hover);
    color: var(--secondary-green);
}

.dropdown-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: var(--transition);
}

/* When menu is active/open */
.nav-hamburger.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Individual menu items animation */
.nav-hamburger a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-hamburger a:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* Staggered bounce for menu items */
.nav-hamburger.active a:nth-child(1) {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.1s;
    opacity: 0;
}

.nav-hamburger.active a:nth-child(2) {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.2s;
    opacity: 0;
}

.nav-hamburger.active a:nth-child(3) {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.3s;
    opacity: 0;
}

.nav-hamburger.active a:nth-child(4) {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.4s;
    opacity: 0;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* End of Navbar */


/* Start of Sidebar */
.sidebar {
    position: fixed;
    top: 80px;
    left: 0;
    width: 82px;
    height: calc(100vh - 80px);
    background: var(--bg-darker);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow: hidden;
    color: var(--text-white);
}

.sidebar.open {
    width: 270px;
}

.sidebar:hover {
    width: 270px;
}

.sidebar-header {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-header h3 {
    color: var(--secondary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar.open .sidebar-header h3 {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.sidebar-close:hover {
    transform: rotate(90deg);
    color: var(--secondary-green);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
    overflow: visible !important;
    max-height: calc(100vh - 140px);
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.sidebar-menu li {
    margin: 0.4rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-gray, #ccc);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar-menu a i {
    font-size: 1.5rem;
    color: var(--secondary-green);
    min-width: 30px;
    text-align: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

.sidebar-menu a span {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.open .sidebar-menu a span,
.sidebar:hover .sidebar-menu a span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--secondary-green);
    transform: translateX(14px);
}

.sidebar-menu a:hover i {
    color: var(--primary-green);
    transform: scale(1.1);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg,
            var(--primary-green) 0%,
            var(--secondary-green) 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 255, 170, 0.3);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

.sidebar-footer a {
    color: var(--secondary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-footer a:hover {
    color: var(--primary-green);
}

/* End of Sidebar */

/* Start of main content */
.main-content {
    margin-top: 30px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.main-content.open {
    margin-left: 260px;
}

@media (max-width: 992px) {

    .sidebar:hover~.main-content,
    .sidebar.open~.main-content {
        margin-left: 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* End of main content */

/* What is that for? */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary-green);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-green);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover);
    color: var(--secondary-green);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

.btn.btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.btn-md i {
    font-size: 1rem;
    line-height: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-white);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(77, 140, 77, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light-gray);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.field-error::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* Ticket */
.ticket-box {
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #f7fafc;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-height: 400px;
    overflow: hidden;
    min-height: 0;
}

.messages-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-box::-webkit-scrollbar {
    width: 12px;
}

.ticket-box::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.1);
    border-radius: 4px;
}

.ticket-box::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(42, 42, 42, 0.1);
}

.ticket-box::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.8);
}

.ticket-box {
    scrollbar-color: rgba(148, 163, 184, 0.5) rgba(42, 42, 42, 0.1);
}

.flash-message.flash-danger {
    background-color: #f87171;
    color: #fff;
    border: 1px solid #fca5a5;
}

.message {
    word-wrap: break-word;
}

/* End of Ticket */

/* Start of form style */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
}

.brand-logo {
    height: 4vh;
    margin-right: 2rem;
}

.input-group input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #334155;
    background-color: transparent;
    color: #f7fafc;
    box-sizing: border-box;
}

.input-group .btn {
    margin-left: 2rem;
}

.input-group input::placeholder {
    color: #a0aec0;
    opacity: 1;
}

.input-group .submit-btn i {
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #f7fafc;
}

.eye-icon {
    width: 16px;
    height: 16px;
    transition: opacity 0.25s ease;
}

.eye-open,
.eye-closed {
    transition: opacity 0.25s ease;
}

.password-toggle i {
    font-size: 1rem;
    line-height: 1;
    width: 100%;
    text-align: center;
    display: block;
    margin: auto;
}

.input-group .password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #cbd5e1;
}

.input-group input {
    padding-right: 2.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 1.5vw, 0.8rem);
    cursor: pointer;
    font-size: 0.65;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: clamp(16px, 2vw, 22px);
    height: clamp(16px, 2vw, 22px);
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    background: var(--bg-light, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.checkbox-label input[type="checkbox"]:checked {
    background: var(--secondary-green, #28a745);
    border-color: var(--secondary-green, #28a745);
}
.checkbox-label input[type="checkbox"]:checked::before {
    content: "✓";
    color: white;
    font-size: clamp(10px, 1.2vw, 14px);
    position: absolute;
}

.forgetpassword-link {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.forgetpassword-link:hover,
.forgetpassword-link:focus {
    color: #5a940a;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .forgetpassword-link {
        align-self: flex-end;
        margin-top: 0.2rem;
    }
    .checkbox-label {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
}
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* End of form style */

.card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.card-body {
    padding: 1.5rem;
}

.ticket-detail.card:hover,
.ticket-detail .card-body:hover {
    background-color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    cursor: default !important;
}
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg);
}
.auth-card {
    background: var(--bg-darker);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 120, 0.25);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}
.auth-header {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}

.auth-header i {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    margin-bottom: 0.4rem;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.6rem;
}

.auth-header p {
    color: var(--text-light, #f2f2f2);
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.auth-header .muted {
    color: var(--text-muted, #aaa);
    font-size: 0.8rem;
}
.auth-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--accent-green);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 0.9rem;
    color: var(--accent-green);
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-color, #2f2f2f);
    background: var(--bg-light, #222);
    color: var(--text-light, #fff);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent-green);
    outline: none;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.25);
}
.password-toggle {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted, #aaa);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--accent-green);
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background: #5a940a;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* ---------- FOOTER ---------- */
.auth-footer {
    padding: 1.2rem 1rem;
    text-align: center;
    background: var(--bg-light, #1e1e1e);
    border-top: 1px solid var(--border-color, #333);
}

.auth-footer p {
    color: var(--text-light, #ddd);
    font-size: 0.9rem;
    margin: 0.4rem 0;
}

.auth-footer .link {
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer .link:hover {
    text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .auth-card {
        max-width: 100%;
        border-radius: 10px;
        margin: 0 1rem;
        box-shadow: 0 0 15px rgba(0, 255, 120, 0.2);
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    .input-group input {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 0.5rem;
    }

    .auth-form {
        padding: 1rem;
    }

    .auth-header i {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}

/* ---------- ANIMATION ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* End of Login Style */
/* Start of Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.truck-logo {
    position: absolute;
    bottom: 0;
    width: min(260px, 35vw);
    height: auto;
    animation: drive 4s linear infinite;
    z-index: 2;
}

@keyframes drive {
    0% {
        left: -260px;
        transform: scale(1) translateY(0);
    }

    25% {
        transform: scale(1.05) translateY(-6px);
    }

    50% {
        transform: scale(1.05) translateY(0);
    }

    75% {
        transform: scale(1.05) translateY(-6px);
    }

    100% {
        left: 100%;
        transform: scale(1) translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-green, #4caf50), var(--light-green, #8bc34a));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-emphasis-color: transparent;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray, #555);
    margin-bottom: 2rem;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons a {
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeRise 1.2s ease-out both;
    min-width: 140px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-buttons a:first-child {
    background-color: var(--bg-dark);
    color: white;
}

.hero-buttons a:last-child {
    background-color: var(--bg-dark);
    color: var(--accent-green, #4caf50);
    border: 1px solid var(--accent-green);
}

.hero-buttons a:first-child:hover {
    background-color: var(--accent-green, #4caf50);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons a:last-child:hover {
    background-color: var(--accent-green, #4caf50);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeRise {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(4px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 992px) {
    .hero-image {
        height: 220px;
    }

    .truck-logo {
        width: min(220px, 40vw);
        animation: drive 3s linear infinite;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero-image {
        height: 200px;
    }

    .truck-logo {
        width: min(200px, 45vw);
        animation: drive 2.5s linear infinite;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 160px;
    }

    .truck-logo {
        width: min(150px, 55vw);
        animation: drive 2s linear infinite;
    }
}

/* End of Hero Section */


/* Start of Slogan Section */
.slogn-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    font-weight: bold;
    margin: 5rem auto;
    background-color: var(--primary-green);
    border-radius: 10px;
    max-width: 900px;
    width: 70%;
    padding: 2rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slogn-text span {
    display: inline-block;
    margin-left: clamp(0.8rem, 3vw, 2rem);
    transition: transform 0.3s ease;
}

.slogn-text span:hover {
    transform: scale(1.1);
}

/* For tablets and small laptops */
@media (max-width: 992px) {
    .slogn-text {
        width: 85%;
        padding: 1.8rem 1rem;
    }
}

/* For mobile devices */
@media (max-width: 600px) {
    .slogn-text {
        width: 85%;
        margin: 2rem auto;
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .slogn-text span {
        display: block;
        margin: 0;
    }
}

/* End of Slogan Section */


/* Start of Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-light);
    border-radius: 16px;
    margin-top: 4rem;
    color: white;
    font-size: clamp(0.9rem, 1vw + 0.6rem, 1.1rem);
    line-height: 1.6;
    overflow: hidden;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: clamp(2rem, 5vw, 3em);
    font-weight: 700;
    color: white;
    word-wrap: break-word;
}

.features-label span {
    color: var(--accent-green);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-break: break-word;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 255, 140, 0.2);
    border-color: var(--secondary-green);
}

.feature-card i {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--secondary-green);
    margin-bottom: 1.2rem;
}

.feature-card h5 {
    margin-bottom: 1.2rem;
    font-size: clamp(1.2rem, 1vw + 0.8rem, 1.6rem);
    color: white;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 240px;
    text-align: left;
    line-height: 1.6;
}

.feature-card ul li {
    color: var(--text-gray);
    margin: 0.6rem 0;
    font-size: clamp(0.9rem, 0.5vw + 0.7rem, 1rem);
    position: relative;
    padding-left: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.feature-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-green);
    border-radius: 50%;
}

/* End of Features Section */

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero-section {
        gap: 3rem;
        padding: 3rem 0;
    }

    .road {
        margin-top: -100px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons a {
        flex: 0 1 auto;
    }

    .road {
        margin-top: -90px;
    }

    .slogn-text {
        margin-top: 4rem;
        padding: 1rem;
    }

    .slogn-text span {
        padding-left: clamp(1rem, 4vw, 3rem);
    }

    .features-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 250px;
    }

    .road {
        margin-top: -80px;
        width: 80%;
    }

    .slogn-text {
        margin-top: 3rem;
        padding: 0.8rem;
    }

    .slogn-text span {
        display: block;
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .features-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }
}

/* Start of Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-header {
    color: white;
}

.dashboard-header span {
    color: var(--accent-green);
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-items: center;
}

.stat-card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    background: var(--bg-dark);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 3px solid var(--accent-green);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-icon {
    font-size: 1.75rem;
    color: var(--accent-green);
    flex-shrink: 0;
}

.stat-icon i {
    display: block;
}

.stat-content {
    flex: 1;
}

.stat-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 500;
}

.stat-content h3 {
    margin: 0.25rem 0 0 0;
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 700;
}

@media (max-width: 768px) {
    .stat-card {
        max-width: 65%;
        max-height: 90%;
        padding: 0.4rem;
    }

    .stat-content p {
        font-size: 0.8rem;
    }

    .stat-content h3 {
        font-size: 1rem;
    }

    .stat-icon {
        font-size: 1rem;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        position: fixed;
        top: 3rem;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1.5rem 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(5px);
    }

    /* Animation for menu items */
    .nav-menu.active a:nth-child(1) {
        animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.1s;
        opacity: 0;
    }

    .nav-menu.active a:nth-child(2) {
        animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.2s;
        opacity: 0;
    }

    .nav-menu.active a:nth-child(3) {
        animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.3s;
        opacity: 0;
    }

    .nav-menu.active a:nth-child(4) {
        animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 0.4s;
        opacity: 0;
    }

    /* Bounce animation */
    @keyframes bounceIn {
        0% {
            opacity: 0;
            transform: scale(0.3) translateY(-30px);
        }

        50% {
            opacity: 1;
            transform: scale(1.05);
        }

        70% {
            transform: scale(0.9);
        }

        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    /* ============================= */
    /* RESPONSIVE BREAKPOINTS BELOW */
    /* ============================= */

    /* Larger screens (desktop) */
    @media (min-width: 768px) {
        .nav-menu {
            position: static;
            flex-direction: row;
            background: transparent;
            box-shadow: none;
            border: none;
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            padding: 0;
        }

        .nav-menu a {
            width: auto;
            padding: 0.5rem 1rem;
            text-align: left;
        }

        .nav-menu a:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.1);
        }
    }

    /* Small screens (mobile) */
    @media (max-width: 767px) {
        .nav-menu {
            flex-direction: column;
            padding: 1.5rem 1rem;
            background: var(--bg-darker);
        }

        .nav-menu a {
            width: 100%;
            text-align: center;
        }
    }
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-left: 7%;
    padding-right: 7%;
}

@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        padding: 0%;
    }
}

@media (max-width: 600px) {
    .dashboard {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
        padding-top: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .dashboard-section-header h2 {
        font-size: 1.25rem;
    }

    .quick-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
}

.dashboard-section {
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--bg-dark);
    transition: border-color 0.3s ease;
}

.dashboard-section:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 1rem;
        border-width: 1.5px;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .dashboard-section {
        padding: 1rem;
        border-width: 1px;
        border-radius: 8px;
    }
}

.dashboard-section+.dashboard-section {
    margin-top: 2rem;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    padding: 1rem;
    border-radius: 8px;
    background: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.ticket-item:hover {
    background: var(--bg-darker);
}

.invisible {
    display: none !important;
}

@media (min-width: 993px) {

    .sidebar:hover~.main-content,
    .sidebar.open~.main-content {
        margin-left: 260px;
        transition: margin-left 0.35s ease-in-out;
    }

    .sidebar:hover~.footer,
    .sidebar.open~.footer {
        margin-left: 260px;
        transition: margin-left 0.35s ease-in-out;
    }
}

.main-content {
    margin-top: 1rem;
    margin-left: 3rem;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    transition: margin-left 0.35s ease-in-out, transform 0.3s ease, opacity 0.3s ease;
}

.sidebar:hover~.main-content .dashboard,
.sidebar.open~.main-content .dashboard,
.sidebar:hover~.main-content .dashboard-content,
.sidebar.open~.main-content .dashboard-content {
    transform: translateX(10px);
    opacity: 0.98;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Make sure stat cards stagger in (only when visible) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.08s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.16s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.24s;
}

/* Mobile drawer behavior (works with JS toggling .open) */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content.open {
        transition: filter 0.35s ease;
    }
}

/* End of Dashboard page */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    padding: 1rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.tickets-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.tickets-container {
    display: grid;
    gap: 1.5rem;
}

.ticket-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    transition: var(--transition);
    margin-bottom: -1rem;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
}

.ticket-header .ticket-pair {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.ticket-header .ticket-label {
    font-size: 1rem;
    position: relative;
    top: -3px;
    font-weight: 600;
    color: var(--text-light);
}

.ticket-header .ticket-id,
.ticket-header .ticket-status,
.ticket-header .ticket-priority {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.ticket-status,
.ticket-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-card:hover {
    box-shadow: var(--shadow-lg);
    background-color: var(--hover);
    transform: translateY(-2px);
    border-color: var(--secondary-green);
}

.ticket-id {
    font-family: "Courier New", monospace;
    font-weight: bold;
    color: var(--text-gray);
}

.status-open {
    background: var(--secondary-green);
    color: white;
}

.status-in_progress {
    background: #f59e0b;
    color: white;
}

.status-waiting {
    background: #8b5cf6;
    color: white;
}

.status-resolved {
    background: #10b981;
    color: white;
}

.status-closed {
    background: #6b7280;
    color: white;
}

.status-reopen {
    background: var(--secondary-green);
    color: white;
}

.priority-low {
    background: #6b7280;
    color: white;
}

.priority-medium {
    background: #f59e0b;
    color: white;
}

.priority-high {
    background: #ef4444;
    color: white;
}

.priority-urgent {
    background: #dc2626;
    color: white;
}

.ticket-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

#ticketModal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#ticketModal .modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#ticketModal.show .modal-content {
    transform: scale(1);
}

#ticketModal {
    display: none;
    opacity: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    background-color: #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 1rem;
}

.modal-header .btn-primary {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.6rem;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.chat-container {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachments-container a.attachment-link {
    display: inline-block;
    max-width: 150px;
    max-height: 150px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    margin: 10px;
    border: 2px solid #ccc;
    border-radius: 6px;
}

.attachments-container a.attachment-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

.attachments-container a.attachment-link:hover img {
    transform: scale(1.1);
    border-color: #007bff;
}

#ticket-messages .input-group {
    margin-top: 10px;
}

.ticket-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.ticket-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

.meta-item i {
    color: var(--secondary-green);
}

.ticket-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-right: 0.5rem;
    margin-top: -2rem;
}

.ticket-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.ticket-form {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.form-section h2+p {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-green);
    font-size: 1.5rem;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--secondary-green);
    background: var(--bg-dark);
}

.file-upload-content i {
    font-size: 3rem;
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.file-upload-content p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.file-upload-content small {
    color: var(--text-light-gray);
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

.file-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

.ticket-form .form-actions {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    color: var(--text-white);
}

.quick-action:hover {
    transform: scale(1.1) rotate(2deg);
}

.quick-action i {
    font-size: 2rem;
    color: var(--secondary-green);
}

.quick-action span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Start for Tickets page */
.tickets-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.tickets-page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.btn-create-ticket {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-create-ticket:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: white;
    color: var(--accent-green);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-create-ticket i {
    transition: transform 0.3s ease;
}

.btn-create-ticket:hover i {
    transform: rotate(90deg);
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.ticket-item:hover {
    background: var(--hover);
    border-color: var(--secondary-green);
}

.ticket-info {
    flex: 1;
}

.ticket-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.ticket-info p {
    margin-bottom: 0.25rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.ticket-info small {
    color: var(--text-light-gray);
    font-size: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.empty-state p {
    margin-bottom: 2rem;
    color: var(--text-light-gray);
}

/* End of Tickets page */

.flash-messages {
    margin-bottom: 2rem;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    position: relative;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    margin-top: 2rem;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    margin-top: 2rem;
}

.flash-message.fade-out {
    opacity: 0;
    transform: translateX(100%);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #f59e0b;
    margin-top: 2rem;
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    margin-top: 2rem;
}

.flash-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-disabled {
    background-color: #6c757d !important;
    /* darker grey */
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-green);
}

.legal-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.legal-section {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.legal-section h2 {
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    color: var(--light-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    color: var(--accent-green);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.company-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.company-info h3 {
    color: var(--secondary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--text-white);
    font-size: 0.875rem;
}

.info-item span {
    color: var(--text-gray);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary-green);
    width: 20px;
    text-align: center;
}

.contact-item strong {
    color: var(--text-white);
    margin-right: 0.5rem;
}

.contact-item a {
    color: var(--accent-green);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--light-green);
    text-decoration: underline;
}

.contact-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.legal-section ul {
    list-style-type: none;
    padding-left: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.legal-section ul li::before {
    content: "•";
    color: var(--secondary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-green);
}

.footer-bottom {
    background: var(--bg-dark);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light-gray);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        text-align: center;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .s-grid {
        grid-template-columns: 1fr;
    }

    .fas.fa-shipping-fast {
        display: block;
        margin: 5rem auto 1.5rem auto;
        text-align: center;
    }

    .container {
        margin: -10rem auto 1.5rem auto;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tickets-filters {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ticket-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .ticket-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ticket-actions {
        justify-content: flex-end;
    }

    .form-actions {
        flex-direction: column;
    }

    .main-content {
        padding: 1rem;
    }

    .main-content.with-sidebar {
        margin-left: 0;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .auth-card {
        margin: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .auth-header {
        padding: 1.5rem;
    }

    .ticket-card {
        padding: 1rem;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .legal-section {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--secondary-green);
    outline-offset: 2px;
}

@media print {

    .navbar,
    .sidebar,
    .footer,
    .page-actions,
    .form-actions,
    .ticket-actions {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

.invisible {
    display: none !important;
}