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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

#root {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Login and admin views - center content */
.login-view #root,
.admin-view #root {
    align-items: center;
}

/* Animated background gradient - Optimized for performance */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) translateZ(0);
    }
    100% {
        transform: rotate(360deg) translateZ(0);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container.chat-container {
    max-width: 100%;
    padding: 20px;
    align-items: flex-start;
    height: 93%;

    overflow: hidden;
}

.chat-container {
    max-width: 1400px;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    overflow: hidden;
}

/* Chat view specific styling */
.chat-view #root {
    align-items: flex-start;
    padding: 0;
    overflow: hidden;
}

.login-box, .admin-panel, .chat-panel {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 21px 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.lock-logo {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
}

.lock-logo svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.header-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.header-logo-icon:hover {
    opacity: 1;
}

.header-logo-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

.brand-name {
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.brand-off {
    color: #a0a0a0;
}

.brand-grid {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(224, 224, 224, 0.3);
}

.brand-tagline {
    color: #b0b0b0;
    text-align: center;
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

h1 {
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 0.8s ease-out;
}

.panel-header h1 {
    margin: 0;
    font-size: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0b0;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.08);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
    margin: 0;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.code-display {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.4s ease-out;
}

.code-display strong {
    color: #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

code {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: #c0c0c0;
    font-weight: 500;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.panel-header h1 {
    margin: 0;
    font-size: 28px;
}

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

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #d0d0d0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    width: auto;
    min-width: auto;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateX(-2px);
}

.btn-back svg {
    display: block;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
    margin: 0;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.delete-request-item {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
}

.delete-request-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-approve-delete {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 8px 16px;
    font-size: 12px;
    width: auto;
}

.btn-approve-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-deny-delete {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 8px 16px;
    font-size: 12px;
    width: auto;
}

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

.admin-actions {
    margin-top: 30px;
}

.action-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.action-section h2 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #d0d0d0;
}

.action-section .btn {
    margin-bottom: 12px;
    width: 100%;
}

.action-section .btn:last-of-type {
    margin-bottom: 0;
}

.chat-area {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 15px;
    background: rgba(10, 10, 10, 0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.message-item {
    padding: 16px 18px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: slideIn 0.3s ease-out;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    will-change: transform;
    transform: translateZ(0);
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message-item strong {
    color: #e8e8e8;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.message-item p {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    letter-spacing: 0.2px;
}

.message-item.sender {
    background: rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.25);
    margin-left: auto;
    margin-right: 0;
    max-width: 75%;
}

.message-item.sender strong {
    color: #b8d9ff;
}

.message-item.sender p {
    color: #e0e8f5;
}

.message-item.receiver {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    margin-right: auto;
    margin-left: 0;
    max-width: 75%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

.message-input {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-grow: 0;
    margin-top: auto;
}

.message-input input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.message-input input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.message-input button {
    padding: 14px 24px;
    width: auto;
    min-width: 80px;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success-message {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(81, 207, 102, 0.3);
}


.user-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.user-info h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 20px;
}

.user-info p {
    color: #b0b0b0;
    margin: 8px 0;
    font-size: 14px;
}

.characters-list {
    margin-top: 16px;
}

.characters-list strong {
    color: #e0e0e0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.characters-list ul {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.characters-list li {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    margin: 6px 0;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.characters-list li:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(4px);
}

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Conversations Sidebar */
.conversations-sidebar {
    width: 300px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
    color: #e0e0e0;
}

.btn-new-chat {
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.conversation-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}

.conversation-item .conversation-info {
    flex: 1;
    min-width: 0;
}

.btn-edit-conversation {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #b0b0b0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    flex-shrink: 0;
}

.conversation-item:hover .btn-edit-conversation {
    opacity: 1;
}

.btn-edit-conversation:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.btn-edit-conversation svg {
    display: block;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.conversation-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.conversation-info strong {
    color: #e0e0e0;
    font-size: 14px;
}

.conversation-info small {
    color: #999;
    font-size: 11px;
}

.no-conversation {
    padding: 20px;
    text-align: center;
    color: #999;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.no-conversation > p {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.public-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

.public-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.public-chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

.public-chat-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.public-chat-timer {
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 500;
}

.public-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    min-height: 0;
    max-height: 100%;
}

.public-message-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 2px solid rgba(99, 102, 241, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.public-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.public-message-item strong {
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    flex: 1;
    min-width: 0;
}

.btn-three-dots {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.btn-three-dots:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    opacity: 1;
}

.btn-three-dots svg {
    display: block;
}

.public-message-item p {
    color: #d0d0d0;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.public-message-item small {
    color: #666;
    font-size: 10px;
    display: block;
    margin-top: 4px;
}

.public-message-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.public-message-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.public-message-input input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

.public-message-input input::placeholder {
    color: #666;
}

.public-message-input .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* User Code Display */
.user-code-display {
    margin: 20px;
    margin-bottom: 0;
}

.user-code-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.user-code-label {
    color: #a5b4fc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.user-code-value {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    margin: 10px 0;
    word-break: break-all;
}

.btn-copy-code {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.user-code-hint {
    color: #999;
    font-size: 11px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* User Code Display Sidebar */
.user-code-display-sidebar {
    margin: 15px;
    margin-bottom: 10px;
}

.user-code-box-sidebar {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.user-code-label-sidebar {
    color: #a5b4fc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.user-code-value-sidebar {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    word-break: break-all;
}

.btn-copy-code-sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* User Code Display Main (Chat Title Altı) */
.user-code-display-main {
    margin: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.user-code-box-main {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.user-code-label-main {
    color: #a5b4fc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.user-code-value-main {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    margin: 10px 0;
    word-break: break-all;
}

.btn-copy-code-main {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code-main:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.user-code-hint-main {
    color: #999;
    font-size: 11px;
    margin-top: 10px;
    margin-bottom: 0;
}

.chat-panel {
    flex: 1;
    min-width: 0;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .chat-container {
        flex-direction: column;
    }
    
    .conversations-sidebar {
        width: 100%;
        max-height: 300px;
    }
}

.btn-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
    margin: 0;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.info-panel {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.info-content {
    margin-top: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.info-link:hover {
    transform: translateX(4px);
}

.link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.info-link:hover .link-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #b0b0b0;
    flex-shrink: 0;
}

.info-link:hover .link-icon {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

.link-content {
    flex: 1;
}

.link-content strong {
    display: block;
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 4px;
}

.link-content p {
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* Notification System */
.notification-container {
    position: relative;
}

.btn-notification {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
    padding: 8px 12px;
    width: auto;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-notification:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-notification.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-notification svg {
    stroke: currentColor;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 500px;
    background: rgba(18, 18, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notification-item-group {
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

.notification-sender {
    font-size: 11px;
    color: #999;
    margin: 2px 0;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

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

.notification-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.notification-item-header strong {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
}

.notification-time {
    color: #999;
    font-size: 11px;
    font-weight: normal;
}

.notification-message {
    color: #b0b0b0;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Message Read Status */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.message-footer small {
    color: #999;
    font-size: 12px;
    opacity: 0.8;
}

.read-status {
    font-size: 13px;
    margin-left: 8px;
    opacity: 0.8;
    font-weight: 500;
}

.read-status.sent {
    color: #999;
}

.read-status.read {
    color: #4a9eff;
}

.message-item.sender .message-footer {
    flex-direction: row-reverse;
}

.message-item.sender .message-footer {
    border-top-color: rgba(74, 158, 255, 0.1);
}

.message-item.sender .read-status {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 600px) {
    .login-box, .admin-panel, .chat-panel, .info-panel {
        padding: 30px 24px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .chat-container {
        padding: 10px;
    }
    
    .header-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-info {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .notification-panel {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: 0;
    }
    
    .site-footer {
        padding: 12px 15px;
    }
    
    .site-footer p {
        font-size: 11px;
        gap: 4px;
    }
}

/* Groups Section */
.groups-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.group-item {
    position: relative;
}

.group-item strong::after {
    content: '';
}

/* Group View */
#group-view-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.group-view {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    flex: 1;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.admin-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.group-members-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.group-members-section h3 {
    margin: 0 0 15px 0;
    color: #e0e0e0;
    font-size: 16px;
}

.members-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: color 0.2s ease;
}

.members-section-toggle:hover {
    color: #fff;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.group-members-content {
    margin-top: 10px;
}

.group-members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.group-member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.member-code {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

.admin-badge-small {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.current-user-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.member-actions {
    position: relative;
}

.btn-member-menu {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #b0b0b0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-member-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.member-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.member-menu-dropdown .menu-item {
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.member-menu-dropdown .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.member-menu-dropdown .menu-item-danger {
    color: #ef4444;
}

.member-menu-dropdown .menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.creator-badge {
    background: rgba(139, 69, 19, 0.2);
    color: #d4a574;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.add-member-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-member-section input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.add-member-section input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

.add-member-section .btn {
    padding: 10px 20px;
    width: auto;
    min-width: 100px;
}

.group-actions {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.group-messages-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    overflow: hidden;
    flex-shrink: 1;
}

.group-messages-container .messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 0;
    max-height: none;
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
}

.group-messages-container .message-input {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.group-messages-container .message-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.group-messages-container .message-input input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

.group-messages-container .message-item {
    margin-bottom: 0px;
    padding: 1px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-messages-container .message-item.sent {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.group-messages-container .message-sender {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

.group-messages-container .message-content {
    color: #e0e0e0;
    word-wrap: break-word;
    margin-bottom: 5px;
}

.group-messages-container .message-time {
    font-size: 11px;
    color: #666;
}

.group-messages-container .message-item.system-message {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    text-align: center;
}

.system-message-text {
    color: #a5b4fc;
    font-size: 13px;
    font-style: italic;
}

/* Site Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.discord-logo {
    display: inline-block;
    vertical-align: middle;
    color: #5865F2;
    flex-shrink: 0;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a9eff;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.5;
}

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

.toast.toast-hide {
    opacity: 0;
    transform: translateX(-100px);
}

.toast.toast-success {
    border-left-color: #4caf50;
}

.toast.toast-error {
    border-left-color: #f44336;
}

.toast.toast-warning {
    border-left-color: #ff9800;
}

.toast.toast-info {
    border-left-color: #4a9eff;
}

/* Modal Dialog Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

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

.modal-dialog {
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    max-width: 500px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-dialog.modal-large {
    max-width: 90vw;
    width: 90vw;
    min-width: 600px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messages-list .message-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.messages-list .message-item.error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.messages-list .message-header {
    color: #a5b4fc;
    font-size: 13px;
    margin-bottom: 8px;
}

.messages-list .message-text {
    color: #e0e0e0;
    font-size: 14px;
    margin: 8px 0;
}

.messages-list .message-time {
    color: #999;
    font-size: 11px;
}

.modal-overlay.modal-show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.modal-body p {
    margin: 0;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.modal-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-footer .btn-primary {
    background: #4a9eff;
    color: #ffffff;
}

.modal-footer .btn-primary:hover {
    background: #3a8eef;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.modal-footer .btn:focus {
    outline: 2px solid rgba(74, 158, 255, 0.5);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .modal-dialog {
        min-width: auto;
        max-width: 90%;
    }
    
    .toast {
        min-width: 250px;
        max-width: calc(100% - 40px);
    }
}

/* Info Panel Styles */
.info-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4a9eff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    padding-top: 40px;
    min-width: 320px;
    max-width: 450px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-panel.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.info-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    padding: 0;
}

.info-panel-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.info-panel-close:focus {
    outline: 2px solid rgba(74, 158, 255, 0.5);
    outline-offset: 2px;
}

.info-panel-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-panel-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 600px) {
    .info-panel {
        right: 10px;
        bottom: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
