:root {
    --primary-color: #4b438b;
    --primary-light: #6a5acd;
    --secondary-color: #9370db;
    --dark-bg: #1b1b1c;
    --card-bg: rgba(40, 40, 50, 0.9);
    --blur-bg: rgba(30, 30, 40, 0.8);
}

::-webkit-scrollbar {
    width: 10px;
    background-color: rgba(30, 30, 40, 0.5);
}

::-webkit-scrollbar-track {
    background-color: rgba(30, 30, 40, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4b438b, #6a5acd);
    border-radius: 10px;
    border: 2px solid rgba(30, 30, 40, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4b438b rgba(30, 30, 40, 0.3);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -2;
}

body {
    background: linear-gradient(rgba(30, 30, 40, 0.85), rgba(30, 30, 40, 0.9));
    cursor: url('../img/cursor.cur'), auto;
    font-family: "Poetsen One", sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.container-fluid {
  background-color: var(--blur-bg);
  backdrop-filter: blur(5px);
  min-height: 100vh;
  padding-bottom: 2rem;
}

.special-thumb-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 512px;
    height: 512px;
    margin: 0 auto;
}

.special-thumb {
    width: 512px;
    height: 512px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/special_background.png');
    position: relative;
}

.special-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat .chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(75, 67, 139, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px 12px 0 0;
}

.chat .chat-header img {
    float: left;
    border-radius: 40px;
    width: 40px;
}

.chat .chat-header .chat-about {
    float: left;
    padding-left: 10px;
    color: #d0d0ff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chat .chat-history {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
}

.chat .chat-history ul {
    padding: 0;
}

.chat .chat-history ul li {
    list-style: none;
    margin-bottom: 30px;
}

.chat .chat-history ul li:last-child {
    margin-bottom: 0;
}

.chat .chat-history .message-data {
    margin-bottom: 15px;
}

.chat .chat-history .message-data img {
    border-radius: 40px;
    width: 40px;
}

.chat .chat-history .message-data-time {
    color: #b1b1b1;
    padding-left: 6px;
}

.chat .chat-history .message {
    color: #e0e0e0;
    padding: 18px 20px;
    line-height: 26px;
    font-size: 16px;
    border-radius: 7px;
    display: inline-block;
    position: relative;
    background: rgba(40, 40, 50, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(75, 67, 139, 0.4);
}

.chat .chat-history .message:after {
    border-bottom-color: rgba(40, 40, 50, 0.8);
}

.chat .chat-history .my-message {
    background: rgba(75, 67, 139, 0.6);
}

.chat .chat-history .my-message:after {
    border-bottom-color: rgba(75, 67, 139, 0.6);
}

.chat .chat-history .other-message {
    background: rgba(40, 40, 50, 0.8);
    color: #d0d0ff;
}

.chat .chat-history .other-message:after {
    border-bottom-color: rgba(40, 40, 50, 0.8);
}

.chat .chat-message {
    padding: 20px;
    margin: 0;
    background-color: var(--blur-bg);
    backdrop-filter: blur(5px);
    border-radius: 0 0 12px 12px;
}

.chat .m-b-0 {
    height: 55vh;
    overflow: auto;
    background-color: var(--card-bg);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

.table-custom {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #1b1b1c;
    border-collapse: collapse;
    color: #d0d0d0;
    border: 2px solid #4b438b;
}

.table-custom th,
.table-custom td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #383838;
    color: #d0d0d0;
    background: #1b1b1c;
}

.table-custom th {
    background-color: #262626;
    color: #7e76ca;
    font-weight: bold;
    text-transform: uppercase;
}

.table-custom tbody tr:nth-of-type(even) {
    background-color: #262626;
}

.table-custom tbody tr:nth-of-type(odd) {
    background-color: #1b1b1c;
}

.table-custom tbody tr:hover {
    background-color: #383838;
    color: #7e76ca;
}

.table-custom {
    width: 100%;
    margin-bottom: 1rem;
    background-color: #1b1b1c;
    border-collapse: separate;
    border-spacing: 0;
    color: #d0d0d0;
    border: 2px solid #4b438b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.table-custom th,
.table-custom td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #383838;
}

.table-custom th {
    background-color: #262626;
    color: #7e76ca;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #4b438b;
}

.table-custom td {
    background-color: #1b1b1c;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.table-custom th,
.table-custom td {
    text-align: center;
}

.table-custom tbody tr:hover {
    background-color: #383838;
    color: #7e76ca;
}

.table-custom tbody tr:nth-of-type(even) {
    background-color: #262626;
}

.table-custom tbody tr:nth-of-type(odd) {
    background-color: #1b1b1c;
}

.table-custom tbody tr td:first-child {
    font-weight: bold;
    color: #e0e0e0;
}

.table-custom th:hover {
    background-color: #383838;
    color: #ffffff;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.4);
}

.table-custom td:active {
    background-color: #6b60c6;
    color: #fff;
}

.table-custom::-webkit-scrollbar {
    width: 12px;
    background-color: #1b1b1c;
}

.table-custom::-webkit-scrollbar-thumb {
    background-color: #4b438b;
    border-radius: 10px;
}

.table-custom::-webkit-scrollbar-thumb:hover {
    background-color: #6b60c6;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4b438b;
    box-shadow: 0 4px 15px rgba(75, 67, 139, 0.4);
    color: white;
}

.btn-primary:hover {
    background: #5a51a0;
    transform: translateY(-2px);
}

.btn-danger {
    background: #9370db;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
    color: white;
}

.btn-warning {
    background: #7e6bc9;
    box-shadow: 0 4px 15px rgba(126, 107, 201, 0.4);
    color: white;
}

.btn-success {
    background: #6a5acd;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
    color: white;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    background-color: rgba(40, 40, 50, 0.7);
    color: #d0d0d0;
    border: 1px solid rgba(75, 67, 139, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234b438b' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 10px rgba(106, 90, 205, 0.5);
    outline: none;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(75, 67, 139, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
    background-image: none;
    transition: all 0.3s ease;
}

/*
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(75, 67, 139, 0.4);
}
*/

.card .card-header {
    background: rgba(75, 67, 139, 0.7);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card .card-body {
    color: #d0d0d0;
    padding: 1.5rem;
}

.card .card-footer {
    background-color: rgba(75, 67, 139, 0.5);
    color: #d0d0ff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    backdrop-filter: blur(4px);
}

.card-submenu {
    width: 90%;
    border-radius: 0 0 30px 30px;
    margin: auto;
    border-top: 0;
    text-align: center;
    font-size: 20px;
    color: #d0d0ff;
    padding: 3px;
    margin-top: -15px;
    background: rgba(75, 67, 139, 0.6);
}

.alert {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.alert-primary {
    background: rgba(75, 67, 139, 0.7);
    border-color: rgba(75, 67, 139, 0.4);
    color: white;
}

.alert-danger {
    background: rgba(147, 112, 219, 0.7);
    border-color: rgba(147, 112, 219, 0.4);
    color: white;
}

.btn-menu {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(75, 67, 139, 0.5);
    background-color: rgba(40, 40, 50, 0.7);
    color: #d0d0ff;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-menu:hover {
    background-color: rgba(75, 67, 139, 0.6);
}

.btn-menu.active {
    color: #fff;
    background: #4b438b;
    border-color: rgba(75, 67, 139, 0.7);
}

.swal2-popup {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(75, 67, 139, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: #d0d0d0 !important;
}

.swal2-title {
    color: #d0d0ff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.swal2-content {
    color: #e0e0e0 !important;
    font-size: 1.1rem !important;
}

.swal2-confirm, .swal2-deny, .swal2-cancel {
    background: #4b438b !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(75, 67, 139, 0.4) !important;
    font-weight: 600 !important;
    padding: 10px 25px !important;
    margin: 0 5px !important;
}

.swal2-cancel {
    background: #9370db !important;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4) !important;
}

.swal2-input, .swal2-select {
    background: rgba(40, 40, 50, 0.7) !important;
    border: 1px solid rgba(75, 67, 139, 0.4) !important;
    color: #d0d0d0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.swal2-input:focus, .swal2-select:focus {
    border-color: #6a5acd !important;
    box-shadow: 0 0 10px rgba(106, 90, 205, 0.5) !important;
}

@media (max-width: 768px) {
    .special-thumb-container {
        width: 100%;
        height: auto;
    }
    
    .special-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .chat .m-b-0 {
        height: 40vh;
    }
    
    .card-body {
        padding: 1rem;
    }
}