﻿

html {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: transparent;
    background-image: linear-gradient(343deg, #303D46 29%, #000000 100%);
}


/*adminPanel*/
a li {
    text-decoration: none;
    cursor: pointer;
}

.admin-dashboard {
    background: transparent;
    padding: 20px;
}

.dashboard-header {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .header-content h2 {
        margin: 0;
        color: white;
        font-size: 1.5rem;
    }

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-filter .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 35px 8px 15px;
    border-radius: 5px;
    min-width: 200px;
}

    .user-filter .form-select option {
        background-color: #303D46;
        color: white;
    }

.refresh-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .refresh-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: aliceblue !important;
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-info p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.main-table-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.table {
    margin-bottom: 0;
}

    .table th {
        background: rgba(0, 0, 0, 0.3);
        color: white;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        padding: 15px;
        border: none;
    }

    .table td {
        padding: 15px;
        vertical-align: middle;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

.user-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-primary {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

    .status-badge.active {
        background: rgba(25, 135, 84, 0.2);
        color: #198754;
    }

.hover-row {
    transition: all 0.3s ease;
}

    .hover-row:hover {
        background: rgba(255, 255, 255, 0.05);
    }


.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px; /* Height of top menu */
}

.side-nav {
    width: 280px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 1000;
}

.nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.avatar-circle.large {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

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

.nav-item {
    margin: 5px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.main-content {
    flex: 1;
}


@media (max-width: 768px) {
    .side-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .side-nav.open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }
}


.tickets-container {
    padding: 20px;
}

.tickets-list-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.tickets-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .tickets-header h3 {
        margin: 0;
        color: white;
        font-size: 1.2rem;
    }

.tickets-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.ticket-item {
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
}

    .ticket-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .ticket-item.active {
        background: rgba(255, 255, 255, 0.15);
        border-left: 4px solid #0d6efd;
    }

.ticket-title {
    color: white;
    font-weight: 500;
    margin-bottom: 5px;
}

.ticket-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ticket-content-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.message-header {
    margin-bottom: 10px;
}

.message-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.message-content {
    color: white;
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

    .empty-state img {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.2rem;
    }

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

    .chat-container.visible {
        display: flex;
    }

.chat-header {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.chat-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.status-form {
    color: white;
}

    .status-form label {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 8px;
    }

    .status-form .form-control,
    .status-form .form-select {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
    

        .status-form .form-control:focus,
        .status-form .form-select:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            color: white;
        }

.status-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .status-btn:hover {
        background: #0b5ed7;
        transform: translateY(-2px);
    }

@media (max-width: 768px) {
    .side-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .side-nav.open {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }
}

.logoutBtn:hover {
    color: white !important;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.8);
}



.dot-spinner {
    position: relative;
    display: none; /* dold från början */
    align-items: center;
    justify-content: flex-start;
    --uib-speed: 0.9s;
    width: 2.8rem;
}

.dot-spinner__dot::before {
    content: '';
    height: 20%;
    width: 20%;
    border-radius: 50%;
    background-color: #fff;
    filter: drop-shadow(0 0 10px rgb(95, 150, 202));
    transform: scale(0);
    opacity: 0.5;
    animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
    box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

    .dot-spinner__dot:nth-child(2) {
        transform: rotate(45deg);
    }

        .dot-spinner__dot:nth-child(2)::before {
            animation-delay: calc(var(--uib-speed) * -0.875);
        }

    .dot-spinner__dot:nth-child(3) {
        transform: rotate(90deg);
    }

        .dot-spinner__dot:nth-child(3)::before {
            animation-delay: calc(var(--uib-speed) * -0.75);
        }

    .dot-spinner__dot:nth-child(4) {
        transform: rotate(135deg);
    }

        .dot-spinner__dot:nth-child(4)::before {
            animation-delay: calc(var(--uib-speed) * -0.625);
        }

    .dot-spinner__dot:nth-child(5) {
        transform: rotate(180deg);
    }

        .dot-spinner__dot:nth-child(5)::before {
            animation-delay: calc(var(--uib-speed) * -0.5);
        }

    .dot-spinner__dot:nth-child(6) {
        transform: rotate(225deg);
    }

        .dot-spinner__dot:nth-child(6)::before {
            animation-delay: calc(var(--uib-speed) * -0.375);
        }

    .dot-spinner__dot:nth-child(7) {
        transform: rotate(270deg);
    }

        .dot-spinner__dot:nth-child(7)::before {
            animation-delay: calc(var(--uib-speed) * -0.25);
        }

    .dot-spinner__dot:nth-child(8) {
        transform: rotate(315deg);
    }

        .dot-spinner__dot:nth-child(8)::before {
            animation-delay: calc(var(--uib-speed) * -0.125);
        }

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

#admin-btn {
    display: flex;
    justify-content: space-between;
}

.viewing-user-badge {
    background-color: rgba(0, 123, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 15px;
    display: inline-block;
}

.back-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

    .back-link svg {
        margin-right: 5px;
    }

    .back-link:hover {
        text-decoration: none;
        color: white;
    }

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .clickable-row:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }



/*sortabel tabel*/
th.headerSortUp::after {
    content: " ▲";
}

th.headerSortDown::after {
    content: " ▼";
}


