/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
	font-family: "Nunito", serif;
	font-optical-sizing: auto;
	background-color: rgb(249, 250, 251);
	color: #333333;
	min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 220px;
    background-color: #FFFFFF;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
	border-right: 1px solid #e5e7eb;
	
    position: sticky; /* Alternatief: fixed */
    top: 0;
    height: 100vh;
    flex-shrink: 0; /* Zorgt ervoor dat de breedte niet verandert */
    overflow-y: auto; /* Optioneel: voeg scrollen toe als de inhoud te lang is */				
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.logo i {
    font-size: 2rem;
    color: #60a5fa;
}

.logo span {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo img {
	text-align: center;
	align-items: center;	
}

.sidebar nav ul {
    list-style: none;
    margin-top: 1rem;
}

.sidebar nav li {
    margin-bottom: 0.5rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4d4d4d;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.sidebar nav a:hover {
	background-color: #ff9c3a; /* For browsers that do not support gradients */
	background-image: linear-gradient(to right, #f06597, #ff9c3a);
	color: white;
}

.sidebar nav li.active a {
	background-color: #ff9c3a; /* For browsers that do not support gradients */
	background-image: linear-gradient(to right, #f06597, #ff9c3a);
	color: white;
}

.user-profile {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #4b5563;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-info .name {
    font-weight: 500;
}

.user-info .role {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Main content styles */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky; /* Zorgt ervoor dat de header vast blijft tijdens scrollen */
    top: 0; /* Plaats de header vast aan de bovenkant */
    z-index: 10; /* Zorgt dat de header boven andere inhoud staat */
    background-color: white; /* Houd de achtergrond consistent */
    border-bottom: 1px solid #e5e7eb; /* Optioneel: visuele scheiding met inhoud */
    padding: 1.5rem 1.5rem 0rem 1.5rem; /* Houd padding consistent */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.layout-controls {
    display: flex;
    gap: 0.5rem;
    background-color: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.header-time {
	font-size: 25px;
	font-weight: 600;	
}


/* LAYOUT */
.layout-one-col { grid-template-columns: 1fr; }
.layout-two-col { grid-template-columns: 1fr 1fr; }
.layout-three-col { grid-template-columns: 1fr 1fr 1fr; }
.layout-two-third-one-third { grid-template-columns: 2fr 1fr; }
.layout-one-third-two-third { grid-template-columns: 1fr 2fr; }

.layout-icon > div {
    background-color: currentColor;
    border-radius: 0.125rem;
}

.on-air-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #333333;
    transition: all 0.2s;
}

.on-air-indicator.live {
    background-color: #dc2626;
    color: white;
}

.toggle-mic {
    padding: 0.5rem 1rem;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-mic:hover {
    background-color: #374151;
}

.settings-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    border-radius: 9999px;
    cursor: pointer;
}

.settings-btn:hover {
    background-color: #f3f4f6;
}

/* Decks */

.decks {
    transition: height 0.3s ease; /* Maak de overgang soepel */
    overflow: hidden; /* Verberg de inhoud als de div ingeklapt is */
    background-color: white; /* Optioneel: zorg voor een consistente achtergrondkleur */
	
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.deckcollapse-form {
	height: 25px;
}

.deckcollapse-button {
	width: 100%;
	height: 20px;
	background: white;
	border: 0px;
	margin-top: 3px;
	font-size: 10px;
}

.deckcollapse-button:hover {
	background: #f9fafb;
}

.decks.collapsed {
    height: 50px; /* Ingeklapte hoogte */
}

.decks.expanded {
    height: auto; /* Volledige hoogte */
}


.deck {
    padding: 1rem;
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
}

.deck.playing {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.deck-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.deck-info .song {
    font-weight: 500;
    font-size: 0.875rem;
}

.deck-info .artist {
    color: #6b7280;
    font-size: 0.875rem;
}

.deck-info .time {
    font-family: monospace;
    font-size: 1.125rem;
    font-weight: bold;
}

/* Widgets */
main {
    padding: 1.5rem;
}

.widgets {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.widgets > * {
    margin: 0;
}

.widgets.layout-one-col {
    grid-template-columns: 1fr;
}

.widgets.layout-two-col {
    grid-template-columns: repeat(2, 1fr);
}

.widgets.layout-three-col {
    grid-template-columns: repeat(3, 1fr);
}

.widgets.layout-two-third-one-third {
    grid-template-columns: 2fr 1fr;
}

.widgets.layout-one-third-two-third {
    grid-template-columns: 1fr 2fr;
}

.widget {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
}

.widget h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* New Submenu Styles */
.submenu {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.submenu a:hover {
    color: #4b5563;
    background-color: #f9fafb;
}

.submenu a.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.submenu a i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Stats Widget */
.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat i {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.stat .value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat .label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Playlist Widget */
.playlist-widget .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.playlist-widget button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.playlist-widget button.primary {
    background-color: #4f46e5;
    color: white;
}

.playlist-widget button.secondary {
    background-color: white;
    border: 1px solid #e5e7eb;
}

/* Requests Widget */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.request {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.request:hover {
    background-color: #f9fafb;
}

.request .song {
    font-weight: 500;
}

.request .artist {
    font-size: 0.875rem;
    color: #6b7280;
}

.request-count {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Messages Panel */
.messages-panel {
    width: 320px;
    background-color: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
	transition: width 0.3s ease;
	
	position: sticky; /* Alternatief: fixed */
    top: 0;
    height: 100vh;
    flex-shrink: 0;
    /*overflow-y: auto; */
	 overflow: hidden; 
}


.messages-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
	position: relative;
    padding-right: 40px;
	flex-shrink: 0;
	z-index: 10;
}


.messages-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.unread-count {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
}

.message {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.message.unread {
    background-color: #eff6ff;
}

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

.sender-name {
    font-weight: 500;
}

.message-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.message-content {
    font-size: 0.875rem;
    color: #4b5563;
}

.message-status {
    margin-top: 0.5rem;
    color: #3b82f6;
}

.messages-actions {
	/* 
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: sticky;
	
	
	
    margin-top: auto; /* Duwt het element naar de onderkant */
   /*
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    gap: 0.5rem;
	*/

	
	flex-shrink: 0; /* Voorkomt dat de acties verkleinen */
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    background-color: white; /* Zorg ervoor dat de achtergrond behouden blijft */
    z-index: 10; /* Blijf zichtbaar boven scrollbare inhoud */
}

.messages-actions.collapsed {
	display: none;	
}

.messages-actions button {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.mark-all-read {
    flex: 1;
}

.refresh-messages {
    padding: 0.5rem !important;
}

/* Add these styles for the collapsible messages panel */



.messages-panel.collapsed {
    width: 75px;
	overflow: hidden;
}

/* Header niet weergegeven */ 
.messages-panel.collapsed h2,
.messages-panel.collapsed .unread-count {
    display: none;
}



.collapse-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.collapse-button:hover {
    background-color: #f3f4f6;
}

.collapsed-view {
    display: none;
    padding: 1rem 0;
}

.collapsed .collapsed-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.collapsed-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.collapsed-stat.unread {
    color: #2563eb;
}

.collapsed-stat i {
    font-size: 1.5rem;
}

.collapsed-stat .count {
    font-size: 0.875rem;
    font-weight: 500;
}

.expanded-view {
    /* display: block;*/
    flex: 1; /* Vul de resterende ruimte tussen header en actions */
    overflow-y: auto; /* Alleen dit gedeelte wordt scrollbaar */
    background-color: #f9fafb;
}

.collapsed .expanded-view {
    display: none;
}

.collapse-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    /* Add highlight effect */
    transition: all 0.2s ease;
    box-shadow: 0 0 0 2px transparent;
}

.collapse-button:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Add pulsing effect to make it more noticeable */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.collapse-button:focus {
    outline: none;
    animation: pulse 1.5s infinite;
    background-color: #f3f4f6;
}

/* Utility classes */
.inline {
    display: inline;
}