/* SAM2I Specifics */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.service-icon,
.service-card-icon {
    font-size: 36px;
    background: var(--nav-color);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.service-card h3 {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: var(--nav-color);
    color: var(--primary);
}

.user-dropdown-item.logout {
    color: var(--danger);
    border-top: 1px solid var(--border-color);
}

.user-dropdown-item.logout:hover {
    background: var(--danger);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Tickets ITIL */
.ticket-list {
    margin-top: 40px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.1s, border-color 0.1s;
    text-decoration: none;
    color: var(--text-color);
}

.ticket-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.ticket-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.ticket-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--nav-color);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.badge-info {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border-color: #5865F2;
}

.badge-primary {
    background: rgba(138, 0, 0, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.badge-warning {
    background: rgba(250, 166, 26, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.badge-success {
    background: rgba(87, 242, 135, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.badge-error {
    background: rgba(237, 66, 69, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.2s;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 12px;
    border-radius: 4px;
    font-family: inherit;
    margin-top: 6px;
    margin-bottom: 16px;
}

.form-select {
    cursor: pointer;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.chat-bubble {
    padding: 15px;
    border-radius: 8px;
    background: var(--nav-color);
    border: 1px solid var(--border-color);
    max-width: 85%;
}

.chat-bubble.staff {
    background: rgba(138, 0, 0, 0.05);
    border-color: var(--primary);
    align-self: flex-end;
}

.chat-bubble.system {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    background: transparent;
    border: none;
    align-self: center;
    margin: 10px 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.chat-header strong {
    color: var(--text-color);
}

.chat-header.staff strong {
    color: var(--primary);
}

.page-container {
    max-width: 1000px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}


/* --- ERRORS PAGES --- */
.error-visual {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ========================================
   MODERN CONTENT PAGES (ABOUT, CONTACT, ETC)
   ======================================== */
.page-container {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.content-page {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.content-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.content-page-icon {
    font-size: 48px;
    background: rgba(124, 58, 237, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.content-page h1 {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.content-page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Values Grid (About page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.value-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.value-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.contact-item svg {
    color: var(--primary);
}

.contact-item strong {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    margin: 0;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-callout {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.contact-callout svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-callout p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-callout a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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