/* Klubber oversigt */
.header-section {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.header-section h1 {
    font-size: 2.5rem;
    color: #004494;
    margin-bottom: 0.5rem;
}

/* Knapper */
.btn-primary {
    background: #004494;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #003366;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Medlem action knapper - kompakte og pæne */
.member-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-actions .btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Titel knap - blå */
.member-actions .btn-small:not(.btn-danger):not(.btn-moderator) {
    background: #004494;
    color: white;
    box-shadow: 0 1px 3px rgba(0,68,148,0.2);
}

.member-actions .btn-small:not(.btn-danger):not(.btn-moderator):hover {
    background: #003366;
    box-shadow: 0 2px 5px rgba(0,68,148,0.3);
    transform: translateY(-1px);
}

/* Gør til moderator knap - grøn */
.member-actions .btn-moderator {
    background: #28a745;
    color: white;
    box-shadow: 0 1px 3px rgba(40,167,69,0.2);
}

.member-actions .btn-moderator:hover {
    background: #218838;
    box-shadow: 0 2px 5px rgba(40,167,69,0.3);
    transform: translateY(-1px);
}

/* Fjern knap - rød */
.member-actions .btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 1px 3px rgba(220,53,69,0.2);
}

.member-actions .btn-danger:hover {
    background: #c82333;
    box-shadow: 0 2px 5px rgba(220,53,69,0.3);
    transform: translateY(-1px);
}

/* Generel btn-small (for andre knapper) */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Loading tekst */
.loading {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 2rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.club-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.club-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,68,148,0.2);
}

.club-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.club-logo-placeholder {
    width: 100px;
    height: 100px;
    background: #004494;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.club-card h3 {
    color: #004494;
    margin-bottom: 0.5rem;
}

.club-founder {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.club-members {
    font-weight: 600;
    color: #333;
}

.club-max {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.no-clubs {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem;
    width: 100%;
}

/* Individuel klubside */
.hero-section {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #004494, #0066cc);
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.club-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.club-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.club-header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: auto;
}

.club-header button {
    white-space: nowrap;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: #004494;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.club-header h1 {
    color: #004494;
    margin: 0;
}

.club-header p {
    color: #666;
    margin: 0.5rem 0 0 0;
}

.club-header button {
    margin-left: auto;
}

/* NÆSTE EVENT BOX */
.next-event-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #004494;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,68,148,0.15);
}

.next-event-icon {
    font-size: 3rem;
    line-height: 1;
}

.next-event-content {
    flex: 1;
}

.next-event-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #004494;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.next-event-box h3 {
    color: #004494;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.next-event-meta {
    color: #666;
    font-size: 0.95rem;
}

.next-event-box button {
    margin-left: 0.5rem;
}

.club-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.club-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.club-section h2 {
    color: #004494;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* KLUB BESKRIVELSE - Read-only Quill editor visning */
#clubDescription {
    min-height: 100px;
}

#clubDescription .ql-container {
    border: none !important;
    font-family: inherit;
}

#clubDescription .ql-editor {
    padding: 0;
    line-height: 1.6;
    color: #333;
}

#clubDescription.ql-container.ql-snow {
    border: none;
}

/* Quill content styling i read-only mode */
#clubDescription .ql-editor h1,
#clubDescription .ql-editor h2,
#clubDescription .ql-editor h3 {
    color: #004494;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#clubDescription .ql-editor h1 {
    font-size: 1.8rem;
}

#clubDescription .ql-editor h2 {
    font-size: 1.5rem;
}

#clubDescription .ql-editor h3 {
    font-size: 1.2rem;
}

#clubDescription .ql-editor p {
    margin-bottom: 1rem;
}

#clubDescription .ql-editor strong {
    font-weight: 600;
    color: #222;
}

#clubDescription .ql-editor ul,
#clubDescription .ql-editor ol {
    margin-bottom: 1rem;
}

#clubDescription .ql-editor li {
    margin-bottom: 0.3rem;
}

#clubDescription .ql-editor a {
    color: #004494;
}

#clubDescription .ql-editor a:hover {
    color: #003366;
    text-decoration: underline;
}

/* Fjern Quill toolbar hvis den vises (den bør være skjult) */
#clubDescription .ql-toolbar {
    display: none !important;
}

/* EVENT TABS */
.event-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.event-tab {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.event-tab:hover {
    color: #004494;
}

.event-tab.active {
    color: #004494;
    border-bottom-color: #004494;
}

/* EVENTS LIST */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #004494;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-item:hover {
    background: #e3f2fd;
    transform: translateX(4px);
}

.event-item-content {
    flex: 1;
}

.event-item-title {
    font-weight: 600;
    color: #004494;
    margin-bottom: 0.5rem;
}

.event-item-meta {
    font-size: 0.9rem;
    color: #666;
}

.event-item-actions {
    display: flex;
    gap: 0.5rem;
}

.event-item.past {
    border-left-color: #999;
    opacity: 0.7;
}

.event-item.past .event-item-title {
    color: #666;
}

/* Medlemsliste */
/* Medlemsliste - kompakt og moderne */
.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.member-item:last-child {
    border-bottom: none;
}

.member-item:hover {
    background: #f8f9fa;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.member-name-row strong {
    font-size: 0.95rem;
    color: #333;
}

.member-item small {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

.member-title {
    background: #e3f2fd;
    color: #004494;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.member-title-top {
    margin-bottom: 0.3rem;
}

.member-title-top .member-title {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
}

.moderator-icon {
    color: #FFD700;
    font-size: 1rem;
    line-height: 1;
}

.badge-moderator {
    background: #004494;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.member-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.member-actions .btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* Titel knap - blå */
.member-actions .btn-small:not(.btn-danger):not(.btn-moderator) {
    background: #004494;
    color: white;
    box-shadow: 0 1px 2px rgba(0,68,148,0.15);
}

.member-actions .btn-small:not(.btn-danger):not(.btn-moderator):hover {
    background: #003366;
    box-shadow: 0 2px 4px rgba(0,68,148,0.25);
    transform: translateY(-1px);
}

/* Gør til moderator knap - grøn */
.member-actions .btn-moderator {
    background: #28a745;
    color: white;
    box-shadow: 0 1px 2px rgba(40,167,69,0.15);
}

.member-actions .btn-moderator:hover {
    background: #218838;
    box-shadow: 0 2px 4px rgba(40,167,69,0.25);
    transform: translateY(-1px);
}

/* Fjern knap - rød (samme størrelse som de andre) */
.member-actions .btn-small.btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 1px 2px rgba(220,53,69,0.15);
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.member-actions .btn-small.btn-danger:hover {
    background: #c82333;
    box-shadow: 0 2px 4px rgba(220,53,69,0.25);
    transform: translateY(-1px);
}

.btn-danger {
    background: #d9534f;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-danger:hover {
    background: #c9302c;
    transform: translateY(-2px);
}

.btn-small.btn-danger {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* STICKY CHAT BAR */
.chat-bar {
    position: fixed;
    bottom: 0;
    left: 15%;
    width: 20%;
    max-width: 320px;
    min-width: 280px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 12px 12px 0 0;
    display: none; /* Hidden by default, shown when member */
}

.chat-bar.active {
    display: block;
}

.chat-bar-header {
    background: #004494;
    color: white;
    padding: 0.75rem 1rem;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    user-select: none;
    font-size: 0.9rem;
    position: relative;
}

.chat-resize-handle-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    cursor: ns-resize;
    background: transparent;
    z-index: 10;
}

.chat-resize-handle-top:hover::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.chat-resize-handle-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 8px;
    cursor: ew-resize;
    background: transparent;
    z-index: 10;
}

.chat-resize-handle-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 8px;
    cursor: ew-resize;
    background: transparent;
    z-index: 10;
}

.chat-bar.resizing {
    transition: none;
}

.chat-bar.resizing .chat-container {
    transition: none;
}

.chat-bar.dragging {
    transition: none;
}

.chat-bar-header:hover {
    background: #003366;
}

.chat-unread-badge {
    background: #d9534f;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.chat-container {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.chat-container.open {
    height: 50vh;
    max-height: 500px;
}

.chat-messages-mini {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.chat-message {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.chat-message.own-message {
    background: #e3f2fd;
}

.chat-message.unread {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.chat-message strong {
    color: #004494;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.chat-message p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-message small {
    color: #999;
    font-size: 0.7rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #ddd;
    position: relative;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 0;
}

.emoji-picker-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.emoji-picker-button:hover {
    transform: scale(1.15);
}

.chat-input-container .btn-small {
    flex-shrink: 0;
    white-space: nowrap;
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: none;
    max-width: 280px;
    z-index: 1000;
}

.emoji-picker.active {
    display: block;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.3rem;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
}

.emoji-item:hover {
    background: #f0f0f0;
}

/* Moderator panel - slide-in fra højre */
.moderator-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.moderator-panel.active {
    right: 0;
}

.moderator-panel-header {
    padding: 1.5rem;
    background: #004494;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moderator-panel-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-panel:hover {
    opacity: 0.8;
}

.moderator-panel-content {
    padding: 2rem;
}

.moderator-panel-content button {
    margin-bottom: 0.8rem;
}

.full-width {
    width: 100%;
}

/* Opret klub formular */
.create-club-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.create-club-container h1 {
    color: #004494;
    margin-bottom: 2rem;
}

.create-club-container label {
    display: block;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 500;
}

.create-club-container input[type="text"],
.create-club-container input[type="number"],
.create-club-container textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.create-club-container input[type="checkbox"] {
    margin-right: 0.5rem;
}

.create-club-container button {
    margin-right: 1rem;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* Event modal specifik styling */
#eventModal .modal-content {
    max-width: 700px;
    padding: 2rem;
    overflow: hidden;
}

#eventDetails {
    max-height: 80vh;
    overflow-y: auto;
}

#eventDetails h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

#eventDetails p {
    line-height: 1.6;
}

#eventDetails .ql-editor {
    font-family: inherit;
}

#eventDetails .ql-editor p {
    margin-bottom: 0.8rem;
}

#eventDetails .ql-editor h1,
#eventDetails .ql-editor h2,
#eventDetails .ql-editor h3 {
    color: #004494;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

#eventDetails button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-right: 0;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #004494;
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-content label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content input[type="date"],
.modal-content input[type="datetime-local"],
.modal-content input[type="file"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.modal-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

.modal-content button {
    margin-right: 0.5rem;
    margin-top: 1rem;
}

/* TITLES MANAGEMENT */
.title-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.title-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.title-item input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.title-item button {
    padding: 0.6rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .club-content {
        grid-template-columns: 1fr;
    }

    .clubs-grid {
        grid-template-columns: 1fr;
    }

    .club-header {
        flex-direction: column;
        text-align: center;
    }

    .club-header button {
        margin-left: 0;
        margin-top: 1rem;
    }

    .moderator-panel {
        width: 100%;
        right: -100%;
    }

    .moderator-panel.active {
        right: 0;
    }

    /* MOBIL CHAT - Floating Button */
    .chat-bar {
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-radius: 0 !important;
    }

    .chat-bar-header {
        display: none; /* Skjul desktop header på mobil */
    }

    .chat-resize-handle-left,
    .chat-resize-handle-right,
    .chat-resize-handle-top {
        display: none; /* Ingen resize på mobil */
    }

    .chat-container {
        height: 0 !important;
        border-radius: 0 !important;
    }

    .chat-container.open {
        height: 70vh !important;
        max-height: 70vh !important;
    }

    .chat-bar.mobile-open {
        z-index: 999;
    }

    .emoji-picker {
        max-width: calc(100vw - 2rem);
        right: 1rem;
    }

    .next-event-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Floating Chat Button - kun mobil */
@media (max-width: 768px) {
    .floating-chat-button {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: #004494;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 68, 148, 0.3);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        font-size: 1.8rem;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .floating-chat-button:active {
        transform: scale(0.95);
    }

    .floating-chat-button .chat-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #d9534f;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        border: 2px solid white;
    }

    .floating-chat-close {
        display: none;
        position: fixed;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
    }

    .floating-chat-close.active {
        display: flex;
    }

    .chat-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .chat-overlay.active {
        display: block;
    }
}

/* Desktop - skjul floating button */
@media (min-width: 769px) {
    .floating-chat-button {
        display: none !important;
    }
    
    .floating-chat-close {
        display: none !important;
    }
    
    .chat-overlay {
        display: none !important;
    }
}