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

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #c06c84 25%, #6c5b7b 50%, #355c7d 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 100%);
}

body.dark-mode .chat-container {
    background: rgba(26, 26, 46, 0.98);
}

body.dark-mode .main-content {
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
}

body.dark-mode .chat-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border-bottom: 3px solid rgba(255, 107, 157, 0.3);
}

body.dark-mode .chat-messages {
    background: transparent;
}

body.dark-mode .message-content {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(255, 107, 157, 0.2);
    color: #e0e0e0;
}

body.dark-mode .message-content.admin-message {
    border-color: rgba(220, 20, 60, 0.4);
}

body.dark-mode .message-text {
    color: #e0e0e0;
}

body.dark-mode .message-username {
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .message-reply-info {
    background: rgba(114, 137, 218, 0.2) !important;
    border-left-color: #7289da !important;
}

body.dark-mode .message-reply-info div {
    color: #cbd5e0 !important;
}

body.dark-mode #reply-indicator {
    background: linear-gradient(90deg, rgba(114, 137, 218, 0.2) 0%, rgba(114, 137, 218, 0.1) 100%) !important;
}

body.dark-mode .chat-input {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
}

body.dark-mode .chat-input input {
    background: rgba(15, 52, 96, 0.8);
    color: white;
    border-color: rgba(255, 107, 157, 0.3);
}

body.dark-mode .modal-content {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .user-admin-item {
    background: #16213e;
}

body.dark-mode #bio-textarea {
    background: #16213e;
    color: #e0e0e0;
    border-color: rgba(255, 107, 157, 0.3);
}

body.dark-mode #pm-sidebar {
    background: #1a1a2e !important;
}

body.dark-mode #pm-sidebar-messages {
    background: #16213e !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: floatIn 0.8s ease-out;
}

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

.login-box h1 {
    text-align: center;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(192, 108, 132, 0.3);
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    background: white;
    transform: translateY(-2px);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5089, #b05c74);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.error-message {
    margin-top: 10px;
    color: #e74c3c;
    font-size: 13px;
    min-height: 20px;
}

/* Chat Container */
.chat-container {
    display: flex;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 108, 132, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 3px solid rgba(255, 107, 157, 0.3);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.user-profile {
    padding: 25px;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.status.online {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status.offline {
    background: #95a5a6;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.avatar-upload {
    padding: 15px 20px;
    border-bottom: 1px solid #34495e;
}

.btn-small {
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-small:hover {
    background: linear-gradient(135deg, #ff5089, #b05c74);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.online-users, .rooms-list, .friends-list {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.online-users h4, .rooms-list h4, .friends-list h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: #bdc3c7;
    text-transform: uppercase;
}

#online-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #34495e;
    border-radius: 6px;
}

.user-item .avatar {
    width: 30px;
    height: 30px;
}

.user-item span {
    font-size: 13px;
}

#rooms-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-item {
    padding: 15px;
    background: rgba(52, 73, 94, 0.8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.room-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.2), transparent);
    transition: left 0.5s;
}

.room-item:hover::before {
    left: 100%;
}

.room-item:hover {
    background: rgba(65, 84, 102, 0.9);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.room-item.active {
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    transform: translateX(5px);
}

.room-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.room-item p {
    font-size: 12px;
    color: #bdc3c7;
}

.admin-panel {
    padding: 20px;
    background: #e74c3c;
    margin-top: auto;
}

.admin-panel h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 108, 132, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.chat-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-bottom: 3px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.chat-header h2 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.8em;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #ff6b9d, #c06c84, #6c5b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

body.dark-mode .chat-header h2 {
    background: linear-gradient(135deg, #ff6b9d, #c06c84, #6c5b7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-info span {
    color: #7f8c8d;
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.message {
    display: flex;
    gap: 12px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: left center;
}

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

.message .avatar {
    width: 40px;
    height: 40px;
}

.message-content {
    flex: 1;
    background: white;
    padding: 15px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s;
    position: relative;
}

.message-content:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 157, 0.3);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-username {
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c06c84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
}

/* Nur Admin-Username in Crimson, nicht alle Messages */
.message-username.admin {
    background: linear-gradient(135deg, #dc143c, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-badge {
    display: inline-block;
    background: #dc143c;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Admin-Message-Border bleibt normal pink */
.message-content {
    flex: 1;
    background: white;
    padding: 15px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s;
    position: relative;
}

.message-content:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 157, 0.3);
}

/* NUR Admin-Nachrichten haben Crimson Border */
.message-content.admin-message {
    border: 2px solid rgba(220, 20, 60, 0.4);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
}

.message-content.admin-message:hover {
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.3);
    border-color: rgba(220, 20, 60, 0.6);
}

.message-time {
    font-size: 11px;
    color: #95a5a6;
}

.message-text {
    color: #2c3e50;
    word-wrap: break-word;
}

.message-reactions {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: scale(1.2);
}

.reactions-display {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reaction-count {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(192, 108, 132, 0.2));
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.reaction-count:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(192, 108, 132, 0.3));
    transform: translateY(-2px);
}

.message-actions {
    margin-top: 8px;
}

.message-actions button {
    padding: 4px 8px;
    font-size: 11px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    border-top: 3px solid rgba(255, 107, 157, 0.2);
    display: flex;
    gap: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.chat-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    background: white;
}

.chat-input input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.chat-input .btn-primary {
    width: auto;
    padding: 15px 35px;
    border-radius: 25px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#users-list {
    margin-top: 20px;
}

.user-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 8px;
}

.user-admin-item .user-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-admin-item .actions {
    display: flex;
    gap: 10px;
}

.user-admin-item button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-ban {
    background: #e74c3c;
    color: white;
}

.btn-unban {
    background: #27ae60;
    color: white;
}

.btn-kick {
    background: #f39c12;
    color: white;
}

.admin-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.banned-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1 0%, #e0e0e0 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b9d, #c06c84);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5089, #b05c74);
}

/* Zusätzliche Anime-Styles */
.message-image img {
    transition: all 0.3s ease;
}

.message-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.user-item {
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(65, 84, 102, 1);
    transform: translateX(5px);
}

/* Upload Button Styling */
#upload-image-btn {
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

#upload-image-btn:hover {
    transform: scale(1.2) rotate(-10deg);
    filter: grayscale(0%);
}

/* Admin Panel Styling */
.admin-panel {
    padding: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    margin-top: auto;
    box-shadow: 0 -3px 15px rgba(231, 76, 60, 0.3);
}

/* Sparkle Effect for messages */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.message-content::before {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    opacity: 0;
    animation: sparkle 2s infinite;
    animation-delay: 0.5s;
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        max-width: 100%;
    }

    .sidebar {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 3px solid rgba(255, 107, 157, 0.3);
    }

    .online-users, .friends-list {
        padding: 10px;
    }

    .online-users h4, .friends-list h4 {
        font-size: 12px;
    }

    #online-users-list, #friends-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }

    .user-item {
        flex-direction: column;
        min-width: 60px;
        text-align: center;
    }

    .user-item .avatar {
        width: 40px;
        height: 40px;
    }

    .user-item span {
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 60px;
    }

    .main-content {
        flex: 1;
    }

    .chat-header h2 {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    /* Online avatars in header - verstecken auf Mobile */
    #online-users-avatars {
        display: none !important;
    }

    .chat-messages {
        padding: 15px;
        gap: 12px;
    }

    .message {
        gap: 8px;
    }

    .message .avatar {
        width: 30px;
        height: 30px;
    }

    .message-content {
        padding: 10px 12px;
        font-size: 13px;
    }

    .message-username {
        font-size: 12px;
    }

    .message-time {
        font-size: 10px;
    }

    .chat-input {
        padding: 15px;
        gap: 8px;
    }

    .chat-input input {
        padding: 10px 15px;
        font-size: 13px;
    }

    .chat-input .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* PM Sidebar auf Mobile */
    #pm-sidebar {
        width: 100% !important;
        right: 0;
    }

    .chat-container {
        margin-right: 0 !important;
    }

    /* Admin Panel */
    .admin-panel {
        padding: 10px;
    }

    /* Login Page */
    .login-container {
        padding: 10px;
    }

    .login-box {
        padding: 20px;
    }

    .login-box h1 {
        font-size: 1.8em;
    }

    /* Direct Messages Section auf Mobile */
    #direct-messages-section {
        padding: 10px !important;
    }
}

/* Spezielle Mobile-Device Styles */
body.mobile-device .chat-header {
    padding: 15px 20px;
}

body.mobile-device .chat-messages {
    padding: 10px;
}

body.mobile-device .message-content {
    font-size: 14px;
}

body.mobile-device #online-users-avatars {
    display: none !important;
}

@media screen and (max-width: 480px) {
    .chat-header h2 {
        font-size: 1em;
    }

    .message-content {
        padding: 8px 10px;
        font-size: 12px;
    }

    .admin-badge {
        font-size: 8px;
        padding: 2px 6px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Notification Container on Mobile */
@media screen and (max-width: 768px) {
    #notification-container {
        right: 10px !important;
        left: 10px !important;
        top: 10px !important;
    }

    #notification-container > div {
        min-width: auto !important;
        max-width: none !important;
    }
}
