/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    color: #34495e;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Main Header with Logo */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    z-index: 10;
}

.logo-container {
    margin-bottom: 20px;
}

.main-logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    color: #34495e;
    letter-spacing: -0.5px;
}

.header-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Recorder Dashboard */
.recorder-dashboard {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.dashboard-content {
    padding: 40px;
}

/* Ideas Container */
.ideas-container {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    overflow: hidden;
    margin-bottom: 40px;
}

.ideas-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 30px 40px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.ideas-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ideas-header p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.ideas-content {
    padding: 40px;
}



/* IdeaBuilder Container */
.ideabuilder-container {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    z-index: 10;
    overflow: hidden;
    min-height: 100vh;
}

.ideabuilder-header {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.ideabuilder-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ideabuilder-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.ideabuilder-content {
    padding: 40px;
}

/* Project Management */
.project-management {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-selector label {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.project-select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
    transition: border-color 0.2s ease;
}

.project-select:focus {
    outline: none;
    border-color: #6c757d;
}

.project-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.project-btn.danger {
    background: #f8d7da;
    color: #721c24;
}

.project-btn.danger:hover {
    background: #f5c6cb;
    color: #721c24;
}

.form-select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: #6c757d;
}

.project-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

/* Subproject Management */
.subproject-management {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.subproject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.subproject-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.subproject-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #6c757d;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subproject-btn:hover {
    background: #5a6fd8;
}

.subproject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subproject-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.subproject-item:hover {
    border-color: #6c757d;
    background: #f0f2ff;
}

.subproject-item.active {
    border-color: #6c757d;
    background: #6c757d;
    color: white;
}

.subproject-item .subproject-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.subproject-item .subproject-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.subproject-action-btn {
    padding: 2px 6px;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.subproject-action-btn:hover {
    opacity: 1;
}

.subproject-item.active .subproject-action-btn {
    color: white;
}

/* Add Idea Form */
.add-idea-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.add-idea-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-idea-form.compact {
    padding: 20px 30px;
    margin-bottom: 20px;
}

.compact-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #f8f9fa;
}

.compact-input:focus {
    outline: none;
    border-color: #6c757d;
    background: white;
}

.save-button.compact {
    padding: 12px 16px;
    min-width: auto;
    border-radius: 8px;
}

.subproject-add-form {
    width: 100%;
    align-content: center;
}

.subproject-add-form .form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.subproject-add-form .form-group {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.subproject-add-form .form-actions {
    margin: 0;
    flex-shrink: 0;
}

.subproject-add-form .compact-input {
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    min-width: 0;
}

.subproject-add-form .save-button.compact {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Ideas List Container */
.ideas-list-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ideas-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ideas-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ideas-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    min-width: 200px;
}

.filter-input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.clear-filter-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.clear-filter-btn:hover {
    background: #5a6268;
}

.ideabuilder-list {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

/* Projects Overview */
.projects-overview {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    min-height: 100vh;
}

.projects-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.projects-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 0.9;
}

.projects-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    max-width: 100%;
}

.project-card {
    cursor: pointer;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.project-title-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.project-title-clickable:hover {
    color: #6c757d;
}

.project-title-clickable:hover::after {
    content: ' →';
    color: #6c757d;
    font-weight: normal;
    opacity: 0.7;
}

.project-card-actions {
    display: flex;
    gap: 8px;
}

.project-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-action-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.project-card-content {
    padding: 20px;
}

.project-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-size: 0.9rem;
}

.project-stat i {
    color: #6c757d;
}

/* Project card footer removed - now entire card is clickable */

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-projects p {
    font-size: 1.1rem;
    margin: 0;
}

/* Project Container */
.project-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Project Content Layout with Sidebar */
.project-content-layout {
    display: flex;
    flex: 1;
}

/* Project Sidebar */
.project-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-add-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.sidebar-add-btn:hover {
    background: #5a6fd8;
}

.subproject-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
}

.subproject-sidebar-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.subproject-sidebar-item:hover {
    background: #e9ecef;
}

.subproject-sidebar-item.active {
    background: #6c757d;
    color: white;
}

.subproject-sidebar-item.active .subproject-sidebar-color {
    border: 2px solid white;
}

.subproject-sidebar-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.subproject-sidebar-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subproject-sidebar-actions {
    display: none;
    gap: 4px;
}

.subproject-sidebar-item:hover .subproject-sidebar-actions {
    display: flex;
}

.subproject-sidebar-item.active .subproject-sidebar-actions {
    display: flex;
}

.subproject-sidebar-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.subproject-sidebar-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.subproject-sidebar-action-btn.export-subproject {
    color: #28a745;
}

.subproject-sidebar-action-btn.export-subproject:hover {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Subproject Drag and Drop Styles */
.subproject-drag-handle {
    cursor: grab;
    padding: 4px;
    color: #6c757d;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.subproject-drag-handle:hover {
    opacity: 1;
}

.subproject-sidebar-item:hover .subproject-drag-handle {
    opacity: 1;
}

.subproject-sidebar-item[draggable="true"]:active {
    cursor: grabbing;
}

.subproject-sidebar-item.dragging {
    opacity: 0.6;
    transform: rotate(2deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    background: #ffffff;
    border: 2px solid #6c757d;
}

.subproject-sidebar-item.drag-over {
    border-top: 3px solid #d1d5db;
    margin-top: 3px;
}

.subproject-sidebar-item.drag-over:first-child {
    border-top: 3px solid #d1d5db;
    margin-top: 0;
    padding-top: 3px;
}

/* Project Main Content */
.project-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.content-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ideaparts-content {
    padding: 30px 30px 60px 30px;
    position: relative;
}

.no-subproject-selected {
    text-align: center;
    color: #6c757d;
    padding: 60px 20px;
}

.no-subproject-selected p {
    font-size: 1.1rem;
    margin: 0;
}

/* Subproject Content Section */
.subproject-content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.subproject-add-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subproject-add-section .subproject-add-form {
    margin: 0;
}

.subproject-add-section .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subproject-add-section .form-group {
    flex: 1;
}

.subproject-add-section .compact-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.subproject-add-section .compact-input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.subproject-add-section .save-button.compact {
    padding: 12px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.subproject-add-section .save-button.compact:hover {
    background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-container {
        height: auto;
        min-height: 100vh;
    }
    
    .project-content-layout {
        flex-direction: column;
    }
    
    .project-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .subproject-sidebar-list {
        max-height: 200px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-actions {
        width: 100%;
    }
    
    .ideas-filter {
        width: 100%;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .subproject-add-section {
        margin-bottom: 15px;
    }
}

.project-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.project-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #5a67d8;
}

.project-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-header-actions {
    display: flex;
    gap: 10px;
}

/* Ideaparts by Subproject */
.ideaparts-by-subproject {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    overflow: hidden;
}

.ideaparts-by-subproject-container {
    padding: 30px 40px;
    min-height: 200px;
}

.subproject-section {
    margin-bottom: 40px;
}

.subproject-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

.subproject-section-header {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #6c757d;
}

.subproject-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}
.section-header h2{
    color: #475869;
}

.subproject-section-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    min-width: 100px;
    flex-shrink: 0;
}

.ideapart-count {
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.idea-card {
    background: white;
    border: none;
    border-radius: 5px;
    padding: 0;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.idea-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.idea-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    padding-right: 10px;
    max-width:600px;
}

.idea-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.idea-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.idea-summary {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
    margin-top: 4px;
}

.idea-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}

.idea-actions {
    display: flex;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.idea-card:hover .idea-actions {
    opacity: 1;
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

.idea-content {
    padding: 16px 24px 20px 24px;
}

.idea-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
}

.idea-notes {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #0ea5e9;
    position: relative;
}

.idea-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(14, 165, 233, 0.02) 100%);
    border-radius: 12px;
    pointer-events: none;
}

.idea-notes strong {
    color: #0c4a6e;
    font-weight: 600;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.idea-meta {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
}

.no-ideas {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-ideas p {
    font-size: 1.1rem;
    margin: 0;
}

.no-ideaparts {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.no-ideaparts p {
    font-size: 0.9rem;
    margin: 0;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    border-left: 4px solid #6c757d;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification span {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #495057;
}



/* Add Name Form */
.add-name-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.add-name-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Names List Container */
.names-list-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.names-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.names-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.names-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.names-filter select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Drag and Drop Styles */
.name-pill {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drag-handle {
    font-size: 12px;
    opacity: 0.6;
    cursor: grab;
}

.name-pill:hover .drag-handle {
    opacity: 1;
}

.name-pill.dragging .drag-handle {
    opacity: 1;
}

.name-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.name-pill.dragging {
    cursor: grabbing;
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0.8;
}

.name-pill.drag-over {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.name-pills-container.drag-over {
    background: rgba(102, 126, 234, 0.05);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.2s ease;
}

/* Enhanced visual feedback for cross-subproject drag and drop */
.subproject-section.drag-target {
    background: rgba(102, 126, 234, 0.02);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.subproject-section.drag-target .subproject-header {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px 8px 0 0;
}

.subproject-section.drag-target .name-pills-container {
    background: rgba(102, 126, 234, 0.05);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    min-height: 80px;
}

/* Pulse animation for empty drop zones */
.name-pills-container.drag-over.empty-container {
    animation: pulse-drag 1.5s infinite;
}

@keyframes pulse-drag {
    0% { border-color: #6c757d; background: rgba(102, 126, 234, 0.05); }
    50% { border-color: #4f46e5; background: rgba(102, 126, 234, 0.1); }
    100% { border-color: #6c757d; background: rgba(102, 126, 234, 0.05); }
}

/* Cross-subproject drag and drop styling for project view */
.subproject-sidebar-item.ideapart-drop-target {
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.subproject-sidebar-item.ideapart-drop-target .subproject-sidebar-name {
    font-weight: 600;
    color: #4f46e5;
}

.subproject-sidebar-item.ideapart-drop-target .subproject-sidebar-color {
    border: 2px solid #6c757d;
    transform: scale(1.1);
}

.drag-placeholder {
    width: 120px;
    height: 40px;
    border: 2px dashed #6c757d;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    margin: 5px;
}

.cool-name-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.cool-name-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.cool-name-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cool-name-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cool-name-category {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cool-name-notes {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cool-name-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.cool-name-date {
    font-style: italic;
}

.cool-name-actions {
    display: flex;
    gap: 10px;
}

.cool-name-action-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cool-name-action-btn:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.cool-name-action-btn.copy-btn:hover {
    color: #27ae60;
}

/* Input Mode Tabs */
.input-mode-tabs {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #657786;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 62, 80, 0.1), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    color: #2c3e50;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recording Section */
.recording-section {
    text-align: center;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 40px;
    border: 1px solid #e9ecef;
}

.record-button-container {
    margin-bottom: 20px;
}

.record-button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.record-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.record-button:hover::before {
    left: 100%;
}

.record-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 62, 80, 0.4);
}

.record-button:active {
    transform: translateY(0);
}

.record-button.recording {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    animation: pulse 2s infinite;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: #ff4757;
    font-weight: 600;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.recording-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.control-button.stop {
    background: #e74c3c;
    color: white;
}

.control-button.pause {
    background: #f39c12;
    color: white;
}

.control-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Text Input Section */
.text-input-section {
    text-align: center;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 40px;
    border: 1px solid #e9ecef;
}

.text-input-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

#ideaTextInput {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: white;
    margin-bottom: 20px;
}

#ideaTextInput:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.analyze-button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

/* Audio Player */
.audio-player {
    text-align: center;
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 40px;
    border: 1px solid #e9ecef;
}

.audio-player h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
}

.transcribe-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.transcribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* Transcription Form */
.transcription-form {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 40px;
    border: 1px solid #e9ecef;
}

.transcription-form h3 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.smaller-text {
    font-size: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.save-button,
.new-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.new-button {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
}

.save-button:hover,
.new-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* General Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn.success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Ideas Section */
.ideas-section h3 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.ideas-list {
    display: grid;
    gap: 10px;
    margin-bottom: 40px;
}

.idea-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.idea-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.idea-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);

    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.idea-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.idea-header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.idea-header-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.idea-header.clickable {
    cursor: pointer;
}

.idea-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.expand-icon {
    color: #6c757d;
    transition: transform 0.2s ease;
    font-size: 1.2rem;
}

.idea-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.view-icon {
    color: #ff3820;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.idea-header-link:hover .view-icon {
    color: #e31e0a;
    transform: scale(1.1);
}

.idea-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.idea-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ed4218 0%, #d13a15 100%);
    color: white;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(237, 66, 24, 0.2);
}



.idea-details {
    padding: 20px;
    display: none;
}

.idea-card.expanded .idea-details {
    display: block;
}

.idea-intro {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.idea-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.analysis-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.analysis-section h5 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-section.pros {
    border-left: 4px solid #27ae60;
}

.analysis-section.pros h5 {
    color: #27ae60;
}

.analysis-section.cons {
    border-left: 4px solid #e74c3c;
}

.analysis-section.cons h5 {
    color: #e74c3c;
}

.analysis-content {
    color: #555;
    line-height: 1.5;
}

.analysis-item {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.improvement-item {
    margin-bottom: 8px;
}

.pro-item {
    color: #27ae60;
}

.con-item {
    color: #e74c3c;
}

.idea-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.idea-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.idea-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-audio-btn {
    background: #3498db;
    color: white;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.idea-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .main-logo {
        max-width: 250px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }
    
    .dashboard-header,
    .ideas-header {
        padding: 20px;
    }
    
    .dashboard-header h2,
    .ideas-header h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-content,
    .ideas-content {
        padding: 20px;
    }
    
    .input-mode-tabs {
        margin-bottom: 20px;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .record-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .save-button,
    .new-button {
        width: 100%;
        justify-content: center;
    }
    
    .ideas-list {
        grid-template-columns: 1fr;
    }
    
    .idea-card {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .idea-header {
        padding: 20px;
    }
    
    .idea-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .idea-header-left {
        gap: 6px;
    }
    
    .idea-header-right {
        gap: 8px;
    }
    
    .idea-summary {
        font-size: 0.85rem;
    }
    
    .expand-icon {
        align-self: flex-end;
    }
    
    .idea-actions {
        flex-direction: column;
    }

    /* Cool Names Mobile Styles */
    .add-name-form {
        padding: 20px;
    }
    .names-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .names-filter select {
        width: 100%;
    }
    .cool-name-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cool-name-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cool-name-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 200px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    header h1 {
        font-size: 1.8rem;
    }
    
    .record-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .control-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .idea-card {
        margin-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Styles */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.card-avatar.score-highest {
    background:  #ed4218;
}

.card-avatar.score-high {
    background:  #db5a3a;
}

.card-avatar.score-medium {
    background:  #db9685;
}

.card-avatar.score-low {
    background:  #e0beb4;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.input-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-audio {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-typed {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Similar Products Section */
.similar-products-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.similar-products-section h5 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1rem;
}

.similar-product-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.similar-product-item:last-child {
    border-bottom: none;
}

.similar-product-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(52, 152, 219, 0.1);
}

.similar-product-item a:hover {
    color: #2980b9;
    text-decoration: none;
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.similar-product-url {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
    word-break: break-all;
}

.similar-products-check-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.check-similar-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-similar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.check-similar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.similar-products-loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

.similar-products-save-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.save-similar-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-similar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.save-similar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.similar-products-saving {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 20px 0;
}

.similar-products-actions-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Idea Detail Page Styles */
.back-button-container {
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.idea-detail-page {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.idea-detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.idea-detail-title-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.idea-detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.idea-detail-meta .idea-date,
.idea-detail-meta .idea-score {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.95rem;
}

.idea-detail-meta .idea-score {
    font-weight: 600;
    color: #495057;
}

.idea-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idea-detail-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.idea-detail-actions .play-audio-btn,
.idea-detail-actions .delete-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-detail-actions .play-audio-btn {
    background: #3498db;
    color: white;
}

.idea-detail-actions .delete-btn {
    background: #e74c3c;
    color: white;
}

.idea-detail-actions .play-audio-btn:hover,
.idea-detail-actions .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.idea-detail-content {
    padding: 40px;
}

.idea-intro-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.idea-intro-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.idea-intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.idea-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.idea-analysis-grid .analysis-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.idea-analysis-grid .analysis-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.idea-analysis-grid .analysis-section.pros {
    border-left: 4px solid #27ae60;
}

.idea-analysis-grid .analysis-section.pros h3 {
    color: #27ae60;
}

.idea-analysis-grid .analysis-section.cons {
    border-left: 4px solid #e74c3c;
}

.idea-analysis-grid .analysis-section.cons h3 {
    color: #e74c3c;
}

.idea-analysis-grid .analysis-content {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.similar-products-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.similar-products-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-products-content {
    margin-bottom: 25px;
}

.similar-product-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.similar-product-item:last-child {
    border-bottom: none;
}

.similar-product-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(52, 152, 219, 0.1);
}

.similar-product-item a:hover {
    color: #2980b9;
    text-decoration: none;
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.similar-product-url {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
    word-break: break-all;
}

.similar-products-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.idea-full-text {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.idea-full-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.idea-text-content {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

/* Responsive Design for Idea Detail Page */
@media (max-width: 768px) {
    .idea-detail-header {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .idea-detail-title-section h1 {
        font-size: 2rem;
    }
    
    .idea-detail-meta {
        gap: 15px;
    }
    
    .idea-detail-actions {
        width: 100%;
        justify-content: center;
    }
    
    .idea-detail-content {
        padding: 20px;
    }
    
    .idea-analysis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .similar-products-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .idea-detail-title-section h1 {
        font-size: 1.8rem;
    }
    
    .idea-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .idea-detail-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .idea-detail-actions .play-audio-btn,
    .idea-detail-actions .delete-btn {
        width: 100%;
        justify-content: center;
    }
} 

/* Main Navigation Bar */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.06);
    padding: 18px 32px 18px 32px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    position: relative;
    z-index: 20;
}

.nav-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: 10px;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.user-info:hover {
    background: #f8f9fa;
    color: #6c757d;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-header i {
    font-size: 1.2rem;
    color: #6c757d;
}

.dropdown-header span {
    font-weight: 600;
    color: #2c3e50;
}

.dropdown-divider {
    height: 1px;
    background: #f1f3f4;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #6c757d;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

.dropdown-item:hover i {
    color: #6c757d;
}

.nav-link.logout {
    color: #dc3545;
    transition: color 0.3s ease;
    font-size:12px;
}

.nav-link.logout:hover {
    color: #c82333;
}

.quick-add-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-add-input {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 180px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-add-input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.quick-add-btn {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.quick-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.quick-add-btn:active {
    transform: translateY(0);
}

.nav-link {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.active, .nav-link:hover {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: #fff;
}

/* AI Variations Styles */
.ai-variations-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ai-variations-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-variations-content h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-variations-content h4::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #6c757d;
}

.variations-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variation-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.variation-pill:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.variation-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.variation-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.variation-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-similar .variation-type {
    background: #e3f2fd;
    color: #1976d2;
}

.variation-opposite .variation-type {
    background: #ffebee;
    color: #d32f2f;
}

.variation-creative .variation-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.variation-explanation {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.save-variation-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-left: 12px;
}

.save-variation-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.save-variation-btn:disabled {
    background: #27ae60;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background: #fdf2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* AI Button Styles */
.cool-name-action-btn.ai-btn {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    margin-right: 8px;
}

.cool-name-action-btn.ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .variation-pill {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .save-variation-btn {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .variation-content {
        gap: 6px;
    }
} 

/* Name Pills Layout */
.name-category-section {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #6c757d;
}

.name-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
}

.name-pill {
    color: rgb(63, 63, 63);
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
   
    user-select: none;
    position: relative;
    /* Remove default gradient - let inline styles handle the background */
}

.name-pill.has-notes::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.name-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.name-pill:active {
    transform: translateY(0);
}

/* Modal Styles */
.cool-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    flex: 1;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-pill {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

/* Simplified modal form styles */
.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: #999;
}

/* Force height for notes textarea */
#editNotes {
    min-height: 200px !important;
    height: auto !important;
}

.modal-btn.small {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn.small i {
    font-size: 14px;
}

.update-color-btn.small {
    padding: 8px;
    font-size: 12px;
    min-width: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-color-btn.small i {
    font-size: 14px;
}

.modal-notes {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d;
}

.modal-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.modal-btn.copy-name-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.modal-btn.generate-variations-btn:hover {
    background: #f3e5f5;
    border-color: #7b1fa2;
    color: #7b1fa2;
}

.modal-btn.delete-name-btn:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .name-pills-container {
        gap: 8px;
    }
    
    .name-pill {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        gap: 8px;
    }
    
    .modal-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
} 

@media (max-width: 768px) {

    .projects-grid {
        padding: 5px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown-menu {
        right: -10px;
        min-width: 180px;
    }

    .quick-add-container {
        width: 100%;
        max-width: 300px;
    }

    .quick-add-input {
        flex: 1;
        width: auto;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }
} 

/* Color Picker Styles */
.color-picker-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.color-section-left {
    flex: 1;
    min-width: 0;
}

.color-section-right {
    flex-shrink: 0;
}

.color-picker-section label {
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.recent-colors-section {
    margin-bottom: 15px;
}

.recent-colors-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.recent-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.recent-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-color-swatch:hover {
    transform: scale(1.1);
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recent-color-swatch:active {
    transform: scale(1.05);
}

.recent-color-swatch.selected {
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.recent-color-swatch:hover .color-overlay {
    opacity: 1;
}

.no-recent-colors {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.update-color-btn {
    background: linear-gradient(135deg, #ff3820 0%, #e31e0a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-color-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.update-color-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
} 

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    z-index: 10002;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-success i {
    color: #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-error i {
    color: #e74c3c;
}

.notification-info {
    border-left: 4px solid #3498db;
}

.notification-info i {
    color: #3498db;
}

.notification span {
    color: #2c3e50;
    font-weight: 500;
} 