/* -------------------------------------------------
   RESET / BASE
-------------------------------------------------- */
:root {
    /* Palette Premium */
    --primary-color: #4F46E5;
    /* Indigo vibrant */
    --primary-hover: #4338CA;
    --secondary-color: #1E293B;
    /* Slate dark */
    --text-color: #334155;
    /* Slate 700 */
    --text-light: #64748B;
    /* Slate 500 */
    --border-color: #E2E8F0;
    /* Slate 200 */
    --background: #F8FAFC;
    /* Slate 50 */
    --surface: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 2rem auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* -------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.025em;
}

nav ul.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul.nav-menu li a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul.nav-menu li a:hover,
nav ul.nav-menu li a.active {
    color: var(--primary-color);
}

nav ul.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

nav ul.nav-menu li a:hover::after {
    width: 100%;
}

/* -------------------------------------------------
   MAIN CONTENT
-------------------------------------------------- */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='date'],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--secondary-color);
    background-color: var(--surface);
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
    background: white;
    border-color: var(--border-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text-light);
}

.btn-info {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.btn-info:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-danger {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-warning:hover {
    background: #D97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-admin {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-user {
    background: #F3F4F6;
    color: #374151;
}

/* Tables */
.table-list {
    width: 100%;
    max-width: 1100px;
    /* Constrain width */
    margin: 1.5rem auto;
    /* Center table */
    border-collapse: separate;
    border-spacing: 0;
}

.table-list th {
    text-align: left;
    padding: 1rem;
    background: var(--background);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table-list th:first-child {
    border-top-left-radius: var(--radius-md);
}

.table-list th:last-child {
    border-top-right-radius: var(--radius-md);
}

.table-list td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-list tr:last-child td {
    border-bottom: none;
}

.table-list tr:hover td {
    background-color: #F1F5F9;
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-wrap: nowrap;
    /* Force single line */
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    /* Allow horizontal scroll on small screens */
}

.filter-form label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.filter-form select,
.filter-form input {
    min-width: 120px;
    /* Reduced min-width */
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.filter-form button,
.filter-form .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.filter-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    border: none;
}

.filter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.filter-form .btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.filter-form .btn-secondary:hover {
    background: var(--background);
    color: var(--error);
    /* Red for reset/clear */
    border-color: var(--error);
}

/* Login Page */
.login-page {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Changed from space-between to center */
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    padding: 1rem;
    overflow: hidden;
    /* Prevent scroll */
}

.login-page>* {
    flex-shrink: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Utilities */
.error {
    background: #FEF2F2;
    color: var(--error);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #FECACA;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.mt-20 {
    margin-top: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
        margin: 1rem 10px;
        /* Added 10px side margins as requested */
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Hide text in Add Ticket button on mobile, keep icon */
    .dashboard-container h2+.btn-primary {
        padding: 0.75rem;
    }

    .dashboard-container h2+.btn-primary svg {
        margin-right: 0;
    }

    .dashboard-container h2+.btn-primary .btn-text {
        display: none;
    }

    .filter-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        overflow-x: visible;
        flex-wrap: wrap;
        align-items: end;
    }

    .filter-form label {
        white-space: normal;
        font-size: 0.8rem;
    }

    .filter-form select,
    .filter-form input {
        width: 100%;
        min-width: 0;
    }

    .filter-form button {
        grid-column: span 2;
        width: 100%;
    }

    /* Card View for Table on Mobile */
    .table-list thead {
        display: none;
    }

    .table-list,
    .table-list tbody,
    .table-list tr,
    .table-list td {
        display: block;
        width: 100%;
    }

    .table-list tr {
        margin-bottom: 1rem;
        background: var(--surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .table-list td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
        text-align: right;
    }

    .table-list td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        padding-top: 1rem;
    }

    .table-list td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        text-align: left;
        margin-right: 1rem;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .dashboard-container {
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .card,
    .table-list {
        max-width: 100%;
        width: 100%;
    }

    /* Menu Icons Only */
    .nav-menu li a span {
        display: none;
    }

    .nav-menu li a svg {
        display: block;
        margin: 0 auto;
    }

    .nav-menu li a {
        padding: 0.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    /* Collapsible Filters */
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        display: none;
        /* Hidden by default on mobile, toggled via JS */
        background: #f9fafb;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .mobile-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .filter-actions {
        margin-top: 0.5rem;
        justify-content: space-between;
    }

    /* Profile Spacing */
    .profile-form {
        padding: 1.5rem;
        /* Increased padding */
    }

    /* Card View for Tables */
    .table-list thead {
        display: none;
    }

    .table-list tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
        background: white;
    }

    .table-list td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }

    .table-list td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 1rem;
    }

    .table-list td:last-child {
        justify-content: flex-end;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #f3f4f6;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    .filter-form {
        display: flex !important;
        /* Always show on desktop */
        justify-content: center;
        /* Centered filters */
        flex-wrap: wrap;
        /* Allow wrapping if needed */
    }

    .nav-menu li a svg {
        display: inline-block;
        margin-right: 0.5rem;
    }
}

/* Status Badges - Vibrant Colors */
.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-todo {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-inprogress {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-done {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-blocked {
    background-color: #FEE2F2;
    color: #991B1B;
}

.status-review {
    background-color: #E0E7FF;
    color: #3730A3;
}

.status-waiting {
    background-color: #F3E8FF;
    color: #6B21A8;
}

.status-default {
    background-color: #F3F4F6;
    color: #374151;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success .toast-icon {
    background: #D1FAE5;
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--error);
}

.toast-error .toast-icon {
    background: #FEE2E2;
    color: var(--error);
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-info .toast-icon {
    background: #E0E7FF;
    color: var(--primary-color);
}

.toast-message {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Spin animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Login Page Overrides */
body.is-login header {
    display: none;
}

body.is-login main.card {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

body.is-login .login-page {
    min-height: 100vh;
}

/* -------------------------------------------------
   MODAL STYLES
-------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--surface);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--background);
    color: var(--error);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body .loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.modal-body .error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--error);
}

/* Style the table inside modal */
.modal-body .table-list {
    margin: 0;
}

.modal-body .dashboard-container {
    margin: 0;
    max-width: none;
}

.modal-body h2,
.modal-body h3 {
    margin-top: 0;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        min-height: 85vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* -------------------------------------------------
   ADMIN STYLES
-------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-align: center;
}

.badge-admin {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-user {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ECFDF5;
    border-color: var(--success);
    color: #065F46;
}

.alert-error {
    background-color: #FEF2F2;
    border-color: var(--error);
    color: #991B1B;
}

.alert-info {
    background-color: #EFF6FF;
    border-color: #3B82F6;
    color: #1E40AF;
}

/* -------------------------------------------------
   TICKET DETAILS REDESIGN
-------------------------------------------------- */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ticket-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

/* -------------------------------------------------
   ULTRA DESIGN 2025
-------------------------------------------------- */
.ticket-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    backdrop-filter: blur(4px);
}

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

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.icon-text svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.icon-text:last-child {
    margin-bottom: 0;
}

.description-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.description-section h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.meta-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.ticket-description {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ticket-description h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-content {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    white-space: pre-wrap;
}

.ticket-comments {
    margin-top: 2rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: var(--background);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-top-left-radius: 0;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 600;
    color: var(--secondary-color);
}

.comment-date {
    color: var(--text-light);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row>* {
    flex: 1 1 auto;
    min-width: 150px;
    /* Adjust as needed */
}

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

    .form-row>* {
        min-width: unset;
        width: 100%;
    }
}