/* Layout-1 specific styles with dark sidebar theme */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width 0.3s ease;
    position: relative;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
    width: 80px;
}

/* Collapse Button */
.sidebar-collapse-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 12px;
}

.sidebar-collapse-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #3a3a3a;
}

.collapse-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}


.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 8px;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.company-logo:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .company-logo {
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .company-info {
    display: none;
}

.company-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.company-type {
    font-size: 12px;
    color: #888888;
    font-weight: 400;
}

.expand-arrow {
    color: #666666;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar.collapsed .expand-arrow {
    display: none;
}

/* Sidebar Sections */
.sidebar-section {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 16px 8px 16px;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-item-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.menu-icon {
    font-size: 16px;
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}

.menu-label {
    font-size: 13px;
    font-weight: 500;
    color: #cccccc;
    flex: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .menu-label {
    display: none;
}

.menu-arrow,
.expand-icon {
    color: #666666;
    font-size: 12px;
    margin-left: auto;
}

.sidebar.collapsed .menu-arrow,
.sidebar.collapsed .expand-icon {
    display: none;
}

/* Collapsed Menu Item Adjustments */
.sidebar.collapsed .menu-item {
    padding: 8px 4px;
    margin: 0 4px;
    justify-content: center;
}

.sidebar.collapsed .menu-icon {
    margin-right: 0;
    font-size: 18px;
}

.sidebar.collapsed .sidebar-section {
    padding: 8px 0;
}

/* Expandable Menu */
.menu-item.expandable .submenu {
    display: none;
    margin-top: 4px;
    margin-left: 32px;
}

.menu-item.expandable.expanded .submenu {
    display: block;
}

.menu-item.expandable.expanded .expand-icon {
    transform: rotate(180deg);
}

.submenu-item {
    padding: 6px 0;
    font-size: 12px;
    color: #888888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.submenu-item:hover {
    color: #cccccc;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid #2a2a2a;
    position: relative;
    transition: padding 0.3s ease;
}

.sidebar.collapsed .sidebar-footer {
    padding: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    transition: opacity 0.2s ease;
}

.sidebar.collapsed .user-info {
    display: none;
}

.user-id {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.credit-meter-container {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credit-meter-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.credit-meter-bar {
    width: 100%;
    height: 6px;
    background-color: #0f0f0f;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.credit-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.credit-meter-text {
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
}

.user-settings {
    color: #666666;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sidebar.collapsed .user-settings {
    display: none;
}

/* Sidebar Image Slider Styles */
.sidebar-image-slider {
    padding: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
    /* Add padding box around the slider */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

.slider-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    /* Add padding between the outer box and video content */
    margin: 8px;
}

.slider-images {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    /* Add thin grey border around video content */
    border: 1px solid #555555;
    border-radius: 8px;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.slider-image.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.slider-btn:hover {
    background-color: rgba(79, 70, 229, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background-color: #4f46e5;
    width: 10px;
    height: 10px;
}

/* User Dropdown Styles */
.user-dropdown {
    position: fixed;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    min-width: 200px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin: 4px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-icon {
    font-size: 14px;
    min-width: 16px;
}

.dropdown-label {
    font-size: 13px;
    color: #cccccc;
    font-weight: 500;
}

.dropdown-separator {
    height: 1px;
    background-color: #2a2a2a;
    margin: 4px 8px;
}

.user-dropdown.open {
    display: block;
    animation: slideUp 0.2s ease;
}

.user-settings.open {
    transform: rotate(180deg);
}

/* Admin Section Styles */
.admin-section {
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    margin: 8px;
    padding: 8px 0;
    animation: slideDown 0.3s ease;
}

.admin-section .section-label {
    color: #4f46e5;
    margin-bottom: 8px;
}

.admin-section .menu-item {
    margin: 0 8px;
}

.admin-section .menu-item:hover {
    background-color: rgba(79, 70, 229, 0.1);
}

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

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

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
    overflow-y: auto;
    min-height: 0;
    width: 100%;
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #2a2a2a;
    background-color: #111111;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item {
    font-size: 13px;
    color: #888888;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

.breadcrumb-arrow {
    color: #666666;
    font-size: 12px;
}

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

.nav-button {
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Content Grid */
.content-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    flex: 1;
}

/* Content Cards */
.content-card {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.content-card:hover {
    border-color: #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.card-header {
    position: relative;
}

.card-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.selection-indicator {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.selection-indicator.active {
    opacity: 1;
}

.content-card.active-indicator {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5), 0 8px 16px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.content-card.active-indicator::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
}

.card-content {
    padding: 20px;
}

.card-content p {
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    margin-bottom: 12px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Placeholder Content */
.placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.placeholder-text {
    color: #666666;
    font-style: italic;
    text-align: center;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.project-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.project-name {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.project-status {
    font-size: 11px;
    color: #888888;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 16px;
}

.message {
    margin-bottom: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 11px;
}

.message-user {
    color: #4f46e5;
    font-weight: 600;
}

.message-session {
    color: #10b981;
}

.message-time {
    color: #f59e0b;
    margin-left: auto;
}

.message-content {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 2px;
}

.message-reply {
    color: #666666;
    font-size: 11px;
    font-style: italic;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.message-input {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 13px;
}

.message-input::placeholder {
    color: #666666;
}

.message-input:focus {
    outline: none;
    border-color: #4f46e5;
}

.chat-status {
    display: flex;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green { background-color: #10b981; }
.status-dot.yellow { background-color: #f59e0b; }
.status-dot.red { background-color: #ef4444; }
.status-dot.orange { background-color: #f97316; }
.status-dot.purple { background-color: #8b5cf6; }

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .chat-interface {
        height: 300px;
    }
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Form Elements */
.form-select {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 44px;
}

.form-select:hover {
    border-color: #3a3a3a;
    background-color: #1f1f1f;
}

.form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #0f0f0f;
}

.form-select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px;
}

/* Selection Info */
.selection-info {
    margin-top: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: #888888;
    min-height: 20px;
    line-height: 1.4;
}

.selection-info.active {
    color: #cccccc;
}

/* Project Details */
.project-details-content {
    min-height: 100px;
    padding: 16px 0;
}

.project-details-content.active {
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.project-details-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-details-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888888;
    margin-bottom: 20px;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Join Section */
.join-section {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.join-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.join-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

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

/* Animation for form transitions */
.form-select,
.selection-info,
.project-details-content {
    transition: all 0.3s ease;
}

.selection-info.fade-in {
    animation: fadeIn 0.3s ease;
}

.project-details-content.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Create Project Page Styles */
.create-project-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.selection-summary .selection-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.path-label {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.path-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    background-color: rgba(79, 70, 229, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.path-separator {
    color: #666666;
    font-size: 16px;
}

.overview-content .project-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.overview-content .project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 24px;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.join-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:hover {
    border-color: #3a3a3a;
    background-color: #1f1f1f;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #666666;
}

.form-textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:hover {
    border-color: #3a3a3a;
    background-color: #1f1f1f;
}

.form-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea::placeholder {
    color: #666666;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 24px;
    color: #cccccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    border-color: #3a3a3a;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Responsive adjustments for create project page */
@media (max-width: 768px) {
    .create-project-container {
        padding: 16px;
        gap: 20px;
    }
    
    .selection-path {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .path-separator {
        display: none;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Admin Interface Styles */
.admin-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-card {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.admin-card:hover {
    border-color: #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f0f0f;
}

.admin-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-content {
    padding: 24px;
}

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

.form-row:last-child {
    margin-bottom: 0;
}

.add-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Rich Text Editor */
.rich-editor-container {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.rich-editor-container.small {
    margin-top: 8px;
}

.editor-toolbar {
    padding: 8px 12px;
    background-color: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    gap: 4px;
    align-items: center;
}

.editor-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 4px 8px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3a3a3a;
}

.editor-btn.active {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.editor-separator {
    width: 1px;
    height: 16px;
    background-color: #2a2a2a;
    margin: 0 4px;
}

.rich-editor {
    padding: 12px;
    min-height: 120px;
    color: #ffffff;
    outline: none;
    line-height: 1.5;
}

.rich-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: #666666;
    font-style: italic;
}

.rich-editor:focus {
    background-color: #1f1f1f;
}

/* Settings Group */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.radio-option label {
    font-size: 14px;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.radio-option input[type="radio"]:checked + label {
    color: #ffffff;
    font-weight: 500;
}

/* Topic Management */
.topic-item {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px;
}

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

.topic-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.topic-icon {
    font-size: 18px;
}

.topic-input {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.topic-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.remove-btn {
    background-color: #dc2626;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.remove-btn:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.add-subtopic-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-subtopic-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
}

.topic-description {
    margin-bottom: 16px;
}

.subtopics-container {
    padding-left: 24px;
    border-left: 2px solid #2a2a2a;
}

.subtopic-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.subtopic-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.subtopic-icon {
    font-size: 14px;
}

.subtopic-input {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
}

.subtopic-input:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Poll Management */
.poll-item {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 16px;
}

.poll-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.poll-title {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.poll-title:focus {
    outline: none;
    border-color: #4f46e5;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-label {
    font-weight: 600;
    color: #4f46e5;
    min-width: 24px;
}

.option-input {
    flex: 1;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
}

.option-input:focus {
    outline: none;
    border-color: #4f46e5;
}

.remove-option-btn {
    background-color: #dc2626;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
}

.remove-option-btn:hover {
    background-color: #b91c1c;
}

.poll-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
    margin-bottom: 16px;
}

.add-option-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.add-option-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Schedule Sections */
.topic-schedule,
.subtopic-schedule,
.poll-schedule {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.topic-schedule h5,
.poll-schedule h5 {
    color: #4f46e5;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subtopic-schedule h6 {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Actions Bar */
.form-actions-bar {
    position: sticky;
    bottom: 0;
    background-color: #0a0a0a;
    border-top: 1px solid #2a2a2a;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 24px -24px -24px -24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-large {
    background-color: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f0f0f;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Preview Styles */
.preview-section {
    margin-bottom: 24px;
}

.preview-section h2 {
    color: #ffffff;
    margin-bottom: 12px;
}

.preview-section h3 {
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 8px;
}

.preview-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #888888;
}

.preview-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 16px;
}

.preview-topic {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.preview-topic h4 {
    margin-bottom: 8px;
    color: #ffffff;
}

.preview-topic-desc {
    color: #cccccc;
    margin-bottom: 12px;
}

.preview-subtopics {
    margin-left: 16px;
}

.preview-subtopic {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.preview-subtopic h5 {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
}

.preview-poll {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.preview-poll h4 {
    margin-bottom: 12px;
    color: #ffffff;
}

.preview-poll ul {
    list-style: none;
    padding: 0;
}

.preview-poll li {
    padding: 4px 0;
    color: #cccccc;
}

/* Notification Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Subjects Table Styles */
.subjects-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.subjects-table thead {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid #2a2a2a;
}

.subjects-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subjects-table tbody {
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.subjects-table thead {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.subjects-table tbody tr {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.subject-row {
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subject-row:hover {
    background-color: rgba(79, 70, 229, 0.1);
    border-bottom-color: #4f46e5;
}

.subject-row.selected {
    background-color: rgba(79, 70, 229, 0.15);
    border-left: 3px solid #4f46e5;
}

.subject-name,
.subject-status {
    padding: 12px 16px;
    color: #cccccc;
    font-size: 14px;
}

.subject-name {
    flex: 1;
    font-weight: 500;
}

.subject-status {
    text-align: center;
    font-size: 12px;
    color: #10b981;
}

.placeholder-row td {
    padding: 12px 16px;
    text-align: center;
    color: #666666;
    font-style: italic;
}

/* Topics Table Styles */
.topics-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.topics-table thead {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid #2a2a2a;
}

.topics-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topics-table tbody {
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.topics-table thead {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.topics-table tbody tr {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.topic-row, .subtopic-row {
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    cursor: pointer;
}

.topic-row:hover, .subtopic-row:hover {
    background-color: rgba(79, 70, 229, 0.1);
    border-bottom-color: #4f46e5;
}

.topic-row.selected, .subtopic-row.selected {
    background-color: rgba(79, 70, 229, 0.15);
    border-left: 3px solid #4f46e5;
}

.topic-name,
.topic-status {
    padding: 12px 16px;
    color: #cccccc;
    font-size: 14px;
}

.topic-name {
    flex: 1;
    font-weight: 500;
}

.topic-status {
    text-align: center;
    font-size: 12px;
    color: #10b981;
}

/* Subtopics Table Styles */
.subtopics-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.subtopics-table thead {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid #2a2a2a;
}

.subtopics-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtopics-table tbody {
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.subtopics-table thead {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.subtopics-table tbody tr {
    display: table;
    table-layout: fixed;
    width: 100%;
}


.subtopic-name,
.subtopic-status {
    padding: 12px 16px;
    color: #cccccc;
    font-size: 14px;
}

.subtopic-name {
    flex: 1;
    font-weight: 500;
}

.subtopic-status {
    text-align: center;
    font-size: 12px;
    color: #10b981;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 16px;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .topic-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .topic-title-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .poll-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .poll-schedule {
        justify-content: center;
    }
    
    .form-actions-bar {
        flex-direction: column;
    }
    
    .modal-large {
        width: 95vw;
        max-height: 95vh;
    }
    
    .poll-option {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .option-input {
        min-width: 0;
    }
}
