/* Custom scrollbar for a Notion-like feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #2d2d2d; /* Darker track */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #555; /* Grey thumb */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #777; /* Lighter grey on hover */
}

/* Ensure smooth transitions for UI elements */
.transition-all {
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal specific styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1f2937; /* bg-gray-800 */
    margin: auto;
    padding: 20px;
    border-radius: 0.5rem; /* rounded-lg */
    width: 80%; /* Could be responsive */
    max-width: 500px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    color: #f9fafb; /* text-gray-50 */
}

.close-button {
    color: #9ca3af; /* text-gray-400 */
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #e5e7eb; /* text-gray-200 */
    text-decoration: none;
    cursor: pointer;
}

/* Main app and auth container display */
#app-container {
    display: flex;
    flex: 1;
    height: 100vh;
    overflow: hidden;
}
#auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Drag and Drop styles */
.dragging {
    opacity: 0.5;
    border: 2px dashed #60a5fa; /* border-blue-400 */
    background-color: #374151; /* bg-gray-700 */
}
.drag-over {
    border-top: 2px solid #60a5fa; /* blue-400 */
}
.page-item-wrapper {
    /* This wrapper is needed to make the entire li draggable, not just the button */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Recent pages card styling */
.page-card {
    background-color: #1f2937; /* bg-gray-800 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* p-6 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Gemini Chat Box styles */
#gemini-chat-box {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    width: 100%;
    max-width: 320px; /* Adjust as needed */
    background-color: #1f2937; /* bg-gray-800 */
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    max-height: 80vh; /* Limit height for responsiveness */
    transition: all 0.3s ease-in-out; /* Smooth transition for minimize/maximize */
}
#gemini-chat-box.minimized {
    width: 50px;
    height: 50px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%; /* Make it a circle when minimized */
    display: flex; /* Keep flex for centering icon */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #60a5fa; /* Blue background for minimized icon */
    cursor: pointer;
}
#gemini-chat-box.minimized #gemini-chat-content,
#gemini-chat-box.minimized #gemini-chat-header {
    display: none; /* Hide content when minimized */
}
#gemini-chat-box.minimized #gemini-minimize-icon {
    display: block; /* Show icon when minimized */
    color: white;
    font-size: 24px;
}

#gemini-chat-header {
    cursor: move; /* Indicate draggable */
}
#gemini-chat-output {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #111827; /* bg-gray-900 */
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    max-height: 200px; /* Fixed height for output, will scroll */
}
#gemini-chat-output p {
    margin-bottom: 0.5rem;
}

#gemini-minimize-icon {
    display: none; /* Hidden by default, shown when minimized */
}
