/* General Body & Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
.main-header {
    position: fixed; /* Make header sticky */
    top: 0; /* Position at the top */
    width: 100%; /* Full width */
    height: 80px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    background: linear-gradient(90deg, #10B981, #34D399, #10B981);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it stays on top */
}

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

/* Footer Styling */
.footer-bg {
    background-color: #1f2937;
}

/* Input Fields & Buttons */
input[type="text"],
textarea,
select {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem; /* Tailwind rounded-md */
    font-size: 1em;
    color: #374151;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #10B981; /* Tailwind green-500 */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); /* green-500 with opacity */
    outline: none;
}

/* Modal Styling (for custom alerts) */
.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; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Responsive width */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #10B981;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none; /* Hides the default slider */
    width: 100%; /* Full-width */
    height: 8px; /* Specify a height for the slider track */
    background: #d1d5db; /* Light gray track */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
    border-radius: 5px;
}

/* Mouse-over effects */
input[type="range"]:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 20px; /* Set a specific slider handle width */
    height: 20px; /* Slider handle height */
    background: #10B981; /* Green background */
    border-radius: 50%; /* Make it circular */
    cursor: pointer; /* Cursor on hover */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px; /* Set a specific slider handle width */
    height: 20px; /* Slider handle height */
    background: #10B981; /* Green background */
    border-radius: 50%; /* Make it circular */
    cursor: pointer; /* Cursor on hover */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

/* Idea Card Specific Styles */
.idea-card {
    background-color: #ffffff;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); /* shadow-md */
    padding: 1rem; /* p-4 */
    border: 1px solid #e5e7eb; /* border border-gray-200 */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: grab; /* Indicate draggable */
}

.idea-card.dragging {
    opacity: 0.5;
    border: 2px dashed #10B981;
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
}

.idea-category-tag {
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    border-radius: 0.25rem; /* rounded */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
    color: #ffffff;
}

/* Category Colors */
.category-product { background-color: #3b82f6; /* blue-500 */ }
.category-strategy { background-color: #ef4444; /* red-500 */ }
.category-technology { background-color: #8b5cf6; /* purple-500 */ }
.category-creative { background-color: #f59e0b; /* amber-500 */ }
.category-random { background-color: #10b981; /* green-500 */ }

.idea-content {
    font-size: 1rem; /* text-base */
    color: #374151; /* text-gray-800 */
    margin-bottom: 0.5rem;
}

.idea-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.idea-actions button {
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    transition: background-color 0.2s ease-in-out;
}

.priority-btn {
    background-color: #fcd34d; /* amber-300 */
    color: #92400e; /* amber-900 */
}
.priority-btn.active {
    background-color: #f59e0b; /* amber-500 */
    color: #ffffff;
}

.select-btn {
    background-color: #a7f3d0; /* emerald-200 */
    color: #065f46; /* emerald-900 */
}
.select-btn.active {
    background-color: #10b981; /* emerald-500 */
    color: #ffffff;
}

.delete-btn {
    background-color: #fca5a5; /* red-300 */
    color: #7f1d1d; /* red-900 */
}
.delete-btn:hover {
    background-color: #ef4444; /* red-500 */
    color: #ffffff;
}

.mindmap-parent-indicator {
    font-size: 0.75rem;
    color: #4b5563;
    margin-left: 0.5rem;
    font-style: italic;
}
