:root {
    --primary-color: #1976d2; /* Google Blue 700 */
    --primary-light-color: #e3f2fd; /* Google Blue 50 */
    --text-color: #212121;
    --secondary-text-color: #757575;
    --background-color: #f5f5f5;
    --divider-color: #e0e0e0;
}

.JQPSdSYTooqSniN {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--text-color);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--divider-color);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.DiTJZEOPyPfYtfV {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 400;
}

.DiTJZEOPyPfYtfV .material-icons {
    margin-left: 8px;
    font-size: 32px;
    color: var(--secondary-text-color);
}

.main-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden; /* To contain children */
}

.nav-bar {
    width: 240px;
    /* background: white; */
    padding: 8px 0;
    border-right: none;
    flex-shrink: 0;
    margin: 16px 0 16px 0px;
    border-radius: 16px;
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); */
}

.nav-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-bar ul li a {
    display: flex;
    align-items: center;
    padding: 8px 24px;
    text-decoration: none;
    color: var(--secondary-text-color);
    margin: 4px 8px;
    border-radius: 0px 24px 24px 0px;
    font-size: 14px;
    font-weight: 500;
}

.nav-bar ul li a .material-icons {
    margin-right: 24px;
}

.nav-bar ul li a:hover {
    background-color: var(--background-color);
    color: var(--text-color);
}

.nav-bar ul li a.active {
    background-color: var(--primary-light-color);
    color: var(--primary-color);
}

.content-area {
    flex-grow: 1;
    padding: 24px;
    margin: 16px;
    border: none;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    overflow-y: auto;
    position: relative;
}

/* View switching */
.view {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0s 0.2s;
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    pointer-events: none;
}

.view.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out;
    position: static;
    pointer-events: auto;
}

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

.dashboard-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
}

.create-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.create-ticket-btn:hover {
    background-color: #1565c0; /* Google Blue 800 */
}

.create-ticket-btn .material-icons {
    margin-right: 8px;
}

.ticket-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.summary-card h2 {
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.summary-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-text-color);
}

.recent-tickets h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.recent-tickets table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.recent-tickets th, .recent-tickets td {
    padding: 16px;
    border-bottom: 1px solid var(--divider-color);
}

.recent-tickets th {
    font-weight: 500;
    color: var(--secondary-text-color);
}

.recent-tickets tbody tr:last-child td {
    border-bottom: none;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status.open {
    background-color: #fff0e6; /* Orange 50 */
    color: #c65700; /* Orange 900 */
}

.status.pending {
    background-color: #e3f2fd; /* Blue 50 */
    color: #0d47a1; /* Blue 900 */
}

.status.resolved {
    background-color: #e8f5e9; /* Green 50 */
    color: #1b5e20; /* Green 900 */
}

/* My Tickets Styles */
.my-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.my-tickets-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
}

.filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background-color: var(--background-color);
    font-family: 'Roboto', sans-serif;
    border-radius: 24px;
    padding: 0 12px;
}

.search-container .material-icons {
    color: var(--secondary-text-color);
}

.search-container input {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    padding: 12px 8px;
    border: none;
    background-color: transparent;
    outline: none;
    font-size: 1rem;
}

.tickets-list table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tickets-list th, .tickets-list td {
    padding: 16px;
    border-bottom: 1px solid var(--divider-color);
}

.tickets-list th {
    font-weight: 500;
    color: var(--secondary-text-color);
}

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

.tickets-list tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.tickets-list tbody tr:hover {
    background-color: var(--background-color);
}

/* Messages Styles */
.empty-messages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--secondary-text-color);
}

.empty-messages .material-icons {
    font-size: 10rem;
    color: #e0e0e0; /* A lighter grey */
}

.empty-messages p {
    margin-top: 16px;
    font-size: 1.25rem;
}

/* Settings Styles */
.settings-header h1 {
    margin: 0 0 24px 0;
    font-size: 1.75rem;
    font-weight: 400;
}

.settings-section {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.settings-section h3 {
    margin-top: 0;
    font-weight: 500;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-text-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control:disabled {
    background-color: #eee;
}


.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.notification-item:not(:last-child) {
    border-bottom: 1px solid var(--divider-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.title-container {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 16px;
    gap: 8px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.urIgSZeIteMpUsr {
    padding: 8px 16px;
    /* background-color: white; */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 24px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.urIgSZeIteMpUsr:hover {
    background-color: var(--primary-light-color);
}

/* Help Center Styles */
.help-center-header h1 {
    margin: 0 0 24px 0;
    font-size: 1.75rem;
    font-weight: 400;
}

.faq-section h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--divider-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question:hover {
    color: var(--primary-color);
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--secondary-text-color);
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 0 16px 20px 0;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Create Ticket View Styles */
.create-ticket-header {
    margin-bottom: 24px;
}

.create-ticket-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
}

#create-ticket-form {
    max-width: 800px;
}

.form-group-row {
    display: flex;
    gap: 24px;
}

.form-group-row .form-group {
    flex: 1;
}

#create-ticket-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
}

.form-actions button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-actions .submit-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transition: background-color 0.3s;
}

.form-actions .submit-btn:hover {
    background-color: #1565c0;
}

.form-actions .submit-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-actions .submit-btn.FGRpXZKnfmfzHja .spinner {
    display: block;
}

.form-actions .submit-btn.FGRpXZKnfmfzHja .button-text {
    display: none;
}

.form-actions .submit-btn.FGRpXZKnfmfzHja {
    cursor: not-allowed;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-actions .cancel-btn {
    background-color: transparent;
    color: var(--secondary-text-color);
    border-color: var(--divider-color);
}

.form-actions .cancel-btn:hover {
    background-color: var(--background-color);
}


/* Ticket Detail View Styles */
.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ticket-detail-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 400;
}

.ticket-detail-header h1 span {
    color: var(--secondary-text-color);
}

.header-actions {
    display: flex;
    gap: 16px;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
}

.print-btn .material-icons {
    margin-right: 8px;
}

.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.ticket-status-badge.active {
    background-color: #e8f5e9; /* Green 50 */
    color: #1b5e20; /* Green 900 */
}

.ticket-status-badge.resolved {
    background-color: #f5f5f5; /* Grey 100 */
    color: #757575; /* Grey 600 */
}

.ticket-status-badge .material-icons {
    font-size: 1.25rem;
    margin-right: 8px;
}

.ticket-main {
    position: relative;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    padding: 24px;
}

.ticket-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 24px;
}

.ticket-tabs a {
    padding: 0 4px 16px 4px;
    text-decoration: none;
    color: var(--secondary-text-color);
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.ticket-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    position: relative;
}

.tab-content .tab-pane {
    /* display: none; */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}

.tab-content .tab-pane.active {
    /* display: block; */
    opacity: 1;
    max-height: 1000px; /* Large enough for content */
    visibility: visible;
    transition: opacity 0.3s ease-in-out, max-height 0s;
}

.empty-tab-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
    color: var(--secondary-text-color);
    text-align: center;
}

.empty-tab-content .material-icons {
    font-size: 4rem;
    color: #e0e0e0;
}

.empty-tab-content p {
    margin-top: 16px;
    font-size: 1.1rem;
}

.leqTDHLwMGkYity {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #4caf50; /* Green 500 */
    font-size: 2rem;
}

.ticket-details-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.ticket-details-grid .label {
    font-weight: 500;
    color: var(--secondary-text-color);
}

.info-box, .alert-box {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.info-box {
    background-color: #f5f5f5;
}

.alert-box {
    background-color: #fce8e6; /* Red 50 */
    color: #c53929; /* Red 800 */
    display: flex;
    align-items: center;
}

.alert-box .material-icons {
    margin-right: 12px;
}

.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: transparent;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.action-button:hover {
    background-color: var(--primary-light-color);
    border-color: var(--primary-light-color);
}

.action-button .material-icons {
    font-size: 1.25rem;
    margin-bottom: 0;
    margin-right: 8px;
}

.action-button.cancel {
    color: #d32f2f;
}

.action-button.cancel .material-icons {
    color: #d32f2f;
}

.action-button.cancel:hover {
    background-color: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.1);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .nav-bar {
        width: auto;
        margin: 16px;
    }

    .nav-bar ul {
        display: flex;
        overflow-x: auto;
    }


    .nav-bar ul li a {
        justify-content: center; 
    }

    .content-area {
        margin: 0 16px 16px 16px;
    }

    .ticket-detail-header {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .content-area {
        padding: 16px;
    }

    .dashboard-header, .my-tickets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ticket-summary {
        grid-template-columns: 1fr;
    }

    .recent-tickets, .tickets-list {
        overflow-x: auto;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    .ticket-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .form-actions button {
        width: 100%;
    }

    .ticket-tabs {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .ticket-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-bar ul li a {
        flex-direction: column;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .nav-bar ul li a .material-icons {
        margin-right: 0;
        margin-bottom: 4px;
    }
}
