/* HiveDigit's 'Hive' Theme */

:root {
    --hive-yellow: #FFD700; /* Gold */
    --hive-black: #333333;
    --hive-dark-gray: #222222;
    --hive-light-gray: #F5F5DC; /* Beige for background */
    --hive-text-color: #333333;
    --hive-note-shadow: rgba(0, 0, 0, 0.2);
    --hive-border-radius: 8px;
    --hive-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--hive-font-family);
    margin: 0;
    padding: 0;
    background-color: var(--hive-light-gray);
    color: var(--hive-text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow: hidden; /* Hide scrollbars, board will manage notes */
}

/* Background Hexagon Pattern (Optional, for extra flair) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="115.47" viewBox="0 0 100 115.47"><path fill="%23e0e0bf" d="M50 0L100 28.8675V86.5025L50 115.47L0 86.5025V28.8675L50 0Z"/></svg>');
    background-repeat: repeat;
    background-size: 80px; /* Adjust size of hexagons */
    opacity: 0.1;
    z-index: -1;
}


.honey-board-container {
    width: 100%;
    height: 100vh; /* Full viewport height */
    position: relative;
    box-shadow: 0 4px 15px var(--hive-note-shadow);
    background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white for content area */
    overflow: hidden; /* Notes are draggable within this */
}

.board-header {
    background-color: var(--hive-dark-gray);
    color: var(--hive-yellow);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.board-header .logo {
    height: 40px;
    margin-right: 15px;
}

.board-header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 1px;
}

.add-note-btn {
    background-color: var(--hive-yellow);
    color: var(--hive-dark-gray);
    border: none;
    padding: 10px 20px;
    border-radius: var(--hive-border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.add-note-btn:hover {
    background-color: #FFC107; /* Slightly darker yellow */
    transform: translateY(-2px);
}

.notes-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px); /* Adjust based on header height */
    overflow: hidden; /* Notes move freely within */
}

.note {
    position: absolute;
    width: 200px;
    min-height: 120px;
    padding: 15px;
    border-radius: var(--hive-border-radius);
    box-shadow: 2px 4px 10px var(--hive-note-shadow);
    cursor: grab;
    resize: both; /* Allow resizing */
    overflow: auto; /* Scroll if content overflows */
    word-wrap: break-word;
    background-color: var(--hive-yellow); /* Default note color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.1s ease;
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border for definition */
}

.note:active {
    cursor: grabbing;
    box-shadow: 4px 8px 15px rgba(0, 0, 0, 0.3);
    z-index: 99; /* Bring active note to front */
}

.note-content {
    width: 100%;
    flex-grow: 1;
    border: none;
    background: transparent;
    font-family: var(--hive-font-family);
    font-size: 1em;
    color: var(--hive-text-color);
    resize: none; /* Textarea handles its own resize for height */
    overflow-y: hidden; /* Hide scrollbar initially */
    padding: 0;
    margin-bottom: 10px;
}

.note-content:focus {
    outline: none;
}

.color-picker-trigger {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--hive-dark-gray);
    background-color: rgba(255, 255, 255, 0.7); /* Placeholder for current color */
    position: absolute;
    bottom: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.1s ease;
}

.color-picker-trigger:hover {
    transform: scale(1.1);
}

.color-palette {
    display: none;
    position: absolute;
    bottom: 40px; /* Above the trigger */
    left: 5px;
    background-color: var(--hive-dark-gray);
    border-radius: var(--hive-border-radius);
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
    flex-wrap: wrap;
    gap: 5px;
    width: 100px; /* Adjust as needed */
}

.color-palette.active {
    display: flex;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--hive-yellow);
}

/* Specific colors */
.color-option.yellow { background-color: #FFD700; }
.color-option.orange { background-color: #FFA500; }
.color-option.pink { background-color: #FF69B4; }
.color-option.blue { background-color: #ADD8E6; }
.color-option.green { background-color: #90EE90; }
.color-option.white { background-color: #FFFFFF; }


.delete-note-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background-color 0.2s ease;
    opacity: 0.7;
    z-index: 2;
}

.delete-note-btn:hover {
    background: #FF0000;
    opacity: 1;
}

/* Dragging state */
.note.dragging {
    opacity: 0.8;
    z-index: 100; /* Ensure dragged note is on top */
}

/* For the logo, assuming a simple SVG */
