@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        url('../images/hero_banner.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #111827;
    line-height: 1.6;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

button {
    font-family: inherit;
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Global Navigation (Standardized) --- */
.cs-nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 184, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 62px;
}

.cs-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-submit {
    background: #FFB800;
    color: #000;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: #cc9200;
    transform: translateY(-1px);
}

.nav-logo img {
    height: 36px;
    display: block;
}

/* --- UI Elements --- */
.nav-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-svg {
    height: 35px;
    width: auto;
}

.btn-nav-submit {
    background-color: #e3001b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-submit:hover {
    background-color: #b50013;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 4px;
}

.nav-search-input {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.8rem;
    width: 150px;
    color: #000000;
}

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-user:hover {
    background-color: #f9fafb;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: #FFB800;
    /* Warna emas untuk ikon avatar lalai */
    background-color: #333333;
    /* Latar belakang gelap untuk avatar lalai */
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease-out;
}

.nav-dropdown.show {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

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

.dropdown-item {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #fef2f2;
    color: #e3001b;
}

.dropdown-item.sign-out {
    border-top: 1px solid #f3f4f6;
    color: #ef4444;
}

.dropdown-item.sign-out:hover {
    background: #fff1f2;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 220px;
    margin-top: 15px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.hero-badges {
    display: flex;
    gap: 12px;
}

.hero-badge-link img {
    height: 32px;
    width: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: opacity 0.2s ease;
}

.hero-badge-link:hover img {
    opacity: 0.8;
}

/* --- Language Selector --- */
.lang-selector {
    /* Styles will be added in index.html for now */
}

/* --- Garena Columns / Categories Section --- */
.garena-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .garena-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .garena-columns {
        grid-template-columns: 1fr;
    }
}

.garena-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 320px;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.garena-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.garena-card-header {
    height: 100px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.garena-header-default {
    background: linear-gradient(135deg, #a30014 0%, #d6001c 100%);
}

.garena-card-header-icon {
    font-size: 1.5rem;
    color: #ffffff;
    position: absolute;
    top: 15px;
    left: 15px;
}

.garena-card-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.garena-character-overlay {
    position: absolute;
    top: 5px;
    right: -10px;
    height: 105px;
    z-index: 5;
    pointer-events: none;
}

.garena-card-body {
    padding: 20px 15px;
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.garena-card-body li {
    font-size: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
}

.garena-card-body li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.garena-card-body a {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
}

.garena-card-body a:hover {
    text-decoration: underline;
    color: #e3001b;
}

.recommended-panel {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 240px 1fr;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    background: #ffffff;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommended-panel {
        grid-template-columns: 1fr;
    }
}

.recommended-left {
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommended-left {
        height: 200px;
    }
}

.recommended-left-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommended-right {
    padding: 30px;
}

.recommended-title {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #000000;
    padding-bottom: 8px;
}

.recommended-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recommended-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
    font-size: 0.8rem;
}

.recommended-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recommended-item a {
    color: #555555;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.recommended-item a:hover {
    text-decoration: underline;
    color: #e3001b;
}


/* --- Generic Components (Form, Subpages) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-link {
    text-decoration: none;
}

.footer {
    background: #000;
    border-top: 1px solid rgba(255, 184, 0, 0.3);
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    color: #555;
}

.footer-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-social a {
    color: #FFB800;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 0.72rem;
    line-height: 1.8;
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #000000;
    padding-bottom: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #000000;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-disabled {
    background-color: #eaeaea;
    color: #999999;
    border-color: #eaeaea;
    cursor: not-allowed;
    pointer-events: none;
}

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    /* text-transform: uppercase; */
    /* Removed for better readability on long labels */
    /* letter-spacing: 0.5px; */
    /* Removed for better readability */
    color: #333333;
    /* Darker color for labels */
}

.form-label .required {
    color: #ef4444;
    /* A more standard red for required fields */
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    /* Lighter border */
    color: #111827;
    border-radius: 6px;
    /* Rounded corners */
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #FFB800;
    /* Gold border on focus */
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
    /* Gold shadow on focus */
    outline: none;
    /* Remove default outline */
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* Slightly smaller gap */
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    /* Standard size */
    border: 1px solid #9ca3af;
    /* Lighter border for checkbox */
    background-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    /* Adjust checkmark position */
    left: 5px;
    /* Adjust checkmark position */
    width: 4px;
    height: 8px;
    border: solid #FFB800;
    /* Gold checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: #FFB800;
    /* Gold link color */
    font-weight: 600;
}

.upload-container {
    border: 2px dashed #d1d5db;
    /* Lighter dashed border */
    padding: 30px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
    border-radius: 6px;
    /* Rounded corners */
}

.upload-container:hover {
    background-color: #fcfcfc;
    /* Subtle hover effect */
    border-color: #FFB800;
    /* Gold border on hover */
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.75rem;
    color: #666666;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border: 1px solid #000000;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.file-item-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.file-item-remove {
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.file-item-remove:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px 20px;
    border: 1px solid #000000;
    margin-bottom: 25px;
    background-color: #ffffff;
    font-size: 0.9rem;
}

.alert-info {
    border-left: 5px solid #000000;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.status-open {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-solved {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.chat-container {
    border: 1px solid #000000;
    height: 400px;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 12px;
    position: relative;
}

.bubble-user {
    align-self: flex-end;
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bubble-admin {
    align-self: flex-start;
    background-color: #FFB800;
    color: #000000;
    border: 1px solid #e6a600;
    border-bottom-left-radius: 2px;
}

.bubble-system {
    align-self: center;
    background-color: #f5f5f5;
    color: #555555;
    border: 1px solid #eaeaea;
    font-size: 0.75rem;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-meta {
    font-size: 0.7rem;
    margin-top: 4px;
    display: block;
    opacity: 0.75;
}

.bubble-user .message-meta {
    text-align: right;
    color: #666666;
}

.bubble-admin .message-meta {
    color: #cccccc;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 15px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111827;
    outline: none;
    resize: vertical;
    min-height: 80px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.chat-input-area textarea:focus {
    border-color: #FFB800;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}

.chat-input-area button {
    border: none;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: #FFB800;
    color: #000000;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    height: fit-content;
}

.chat-input-area button:hover {
    background-color: #cc9200;
    color: #000000;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 30px;
    height: calc(100vh - 180px);
    min-height: 700px;
}

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

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.success-modal-overlay.show .success-modal-content {
    transform: translateY(0);
}

.success-modal-content h3 {
    color: #059669;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal-content p {
    color: #374151;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-modal-content .btn {
    width: auto;
    padding: 10px 25px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid green;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    transform: translateX(110%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2100;
    width: 280px;
}

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

.toast p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.toast a {
    display: inline-block;
    background: green;
    color: white;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.2s;
}

.toast a:hover {
    background: #006400;
    opacity: 1;
}

.ticket-manage-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    cursor: pointer;
}

.ticket-manage-item:hover {
    background-color: #f9fafb;
}

.ticket-list-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background-color: #ffffff;
    color: #6b7280;
}

.panel-filters {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #FFB800;
    border-color: #FFB800;
    color: #000;
}

.ticket-items {
    flex-grow: 1;
    overflow-y: auto;
}

.ticket-item {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-item:hover {
    background-color: #fffef5;
}

.ticket-item.active {
    background-color: #fff9e6;
    border-left: 4px solid #FFB800;
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ticket-item-id {
    text-transform: uppercase;
}

.ticket-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #111827;
}

.ticket-item-meta {
    font-size: 0.78rem;
    color: #6b7280;
}

.detail-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    color: #666666;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-header {
    padding: 20px;
    border-bottom: 1px solid #000000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-info {
    max-width: 70%;
}

.detail-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-header .btn-delete {
    background-color: #dc2626;
    /* Red color for delete */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.detail-header .btn-delete:hover {
    background-color: #b91c1c;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    background-color: #f9f9f9;
    font-size: 0.85rem;
}

.detail-desc {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.95rem;
}

.detail-desc-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.detail-attachments {
    padding: 20px;
    border-bottom: 1px solid #000000;
    font-size: 0.85rem;
}

.attachment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #000000;
    background: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.attachment-link:hover {
    background: #000000;
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.fw-bold {
    font-weight: bold;
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 20px;
}

.reply-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 20px;
    /* Space from chat history */
}

.reply-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s ease;
}

.reply-box textarea:focus {
    border-color: #FFB800;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
    outline: none;
}

.reply-box .btn-primary {
    width: 100%;
    /* Make button full width */
    padding: 12px 24px;
    /* Adjust padding for a nicer button */
    border-radius: 8px;
    /* Match other rounded elements */
    background-color: #FFB800;
    border-color: #FFB800;
    color: #000000;
}

.reply-box .btn-primary:hover {
    background-color: #cc9200;
    border-color: #cc9200;
    color: #000000;
}

@media (max-width: 850px) {
    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.user-meta-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-meta-info span {
    font-size: 0.8rem;
    color: #6b7280;
}

.ticket-content-body h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111827;
}

.ticket-message-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

.ticket-sidebar-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
}

.sidebar-block {
    margin-bottom: 20px;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.attachment-list-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Social Login Buttons --- */
.dropdown-login-section {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.login-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-social-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.login-social-btn.google {
    background: white;
    color: #374151;
}

.login-social-btn.facebook {
    background: #1877F2;
    color: white;
    border: none;
    margin-bottom: 0;
}

.login-social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}