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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    color: #333;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.logo i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    display: block;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #4a5568;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fbbf24;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0.75rem;
    color: #4a5568;
}

.user-info i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 3rem;
    overflow-y: auto;
}

/* Views */
.view {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.view.active {
    display: block;
}

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

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}



/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fbbf24;
    border: 2px solid #fbbf24;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    background: #fbbf24;
    color: #1e3a8a;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* Course Content */
.course-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.objectives-list {
    list-style: none;
    padding-left: 0;
}

.objectives-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
}

.objectives-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}



/* Assignments */
.assignments-container {
    max-width: 900px;
    margin: 0 auto;
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.assignments-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.assignment-card {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.assignment-card:hover {
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.assignment-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.assignment-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.assignment-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.assignment-status.pending {
    background: #fed7d7;
    color: #c53030;
}

.assignment-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: #718096;
}

.assignment-actions {
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}





/* AI Chat */
.ai-chat-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chat-window {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fbbf24;
    border-radius: 1rem 1rem 0 0;
}

.chat-header i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.chat-header span {
    flex: 1;
    font-weight: 600;
}

.chat-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.chat-status.online {
    background: rgba(72, 187, 120, 0.2);
    color: #38a169;
}

.ai-chat-container .chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 400px;
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ai-chat-container .message-content {
    flex: 1;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border-top-left-radius: 0.25rem;
}

.ai-chat-container .message-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #2d3748;
}

.ai-chat-container .message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.ai-chat-container .message-content li {
    margin-bottom: 0.25rem;
    color: #4a5568;
}

/* Welcome content styles removed - Submit Work is now the homepage */

.chat-input-area {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.api-integration-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #fbbf24;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.chat-input input:disabled {
    background: #f7fafc;
    cursor: not-allowed;
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fbbf24;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-hint {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

.ai-features {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ai-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.feature-card i {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Welcome Section Styles for AI Assistant Homepage */
.welcome-section {
    margin-bottom: 2rem;
}

.intro-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.intro-card .card-icon i {
    font-size: 2rem;
    color: #fbbf24;
}

.intro-card h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.intro-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.help-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.help-card i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    display: block;
}

.help-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.help-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.encouragement-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.encouragement-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.encouragement-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.tip i {
    color: #fbbf24;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 1.5rem 2rem;
    }
    
    .ai-chat-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .chat-window {
        height: 500px;
    }

    /* Responsive adjustments for new elements */
    .help-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-card .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .intro-card .card-icon i {
        font-size: 1.5rem;
    }
    
    .intro-card h2 {
        font-size: 1.5rem;
    }
    
    .intro-card p,
    .encouragement-section p {
        font-size: 1rem;
    }
    
    .quick-tips {
        align-items: stretch;
    }
    
    .tip {
        justify-content: center;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* Assignment Management Styles */
.assignment-management-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
}

.section-header h2 {
    color: #fbbf24;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.assignment-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.rubric-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rubric-section h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criterion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.criterion-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.criterion-header input[name="criterion-name"] {
    flex: 1;
}

.criterion-header input[name="criterion-points"] {
    width: 100px;
}

.remove-criterion {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-criterion:hover {
    background: #dc2626;
}

/* File Upload Styles */
.file-upload-area {
    margin-top: 1rem;
}

.file-upload-label {
    display: block;
    cursor: pointer;
}

.upload-content {
    border: 2px dashed rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.upload-content:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.upload-content i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-content:hover i {
    transform: scale(1.1);
    color: #f59e0b;
}

.upload-text {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-hint {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Enhanced File Preview */
.file-preview {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 64, 175, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.file-preview:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* File Icon Container */
.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.file-icon i {
    font-size: 1.5rem;
    color: #1e3a8a;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    display: block;
    color: rgba(251, 191, 36, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cool Trash Icon Remove Button */
.file-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

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

.file-remove-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.file-remove-btn:active {
    transform: scale(0.95) rotate(0deg);
    transition: all 0.1s ease;
}

.file-remove-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.file-remove-btn:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.assignments-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.assignment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    cursor: move;
}

.assignment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.assignment-card h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.assignment-card .assignment-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.assignment-card .assignment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.assignment-card .assignment-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Drag Handle */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: grab;
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: rgba(251, 191, 36, 0.8);
}

.drag-handle:active {
    cursor: grabbing;
}

/* Assignment Content Layout */
.assignment-content {
    flex: 1;
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.assignment-header h3 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Status Controls */
.assignment-status-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.published {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(74, 222, 128);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.draft {
    background: rgba(249, 115, 22, 0.2);
    color: rgb(251, 146, 60);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Toggle Button */
.btn-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-toggle.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.btn-toggle.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-toggle.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

/* Drag and Drop States */
.assignment-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg) scale(0.95);
    z-index: 1000;
}

.assignment-card.drag-over {
    border-color: rgba(251, 191, 36, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.4), 0 8px 25px rgba(251, 191, 36, 0.2) !important;
    transform: translateY(-2px);
}

.assignment-card:not(.dragging):hover {
    border-color: rgba(251, 191, 36, 0.3);
}

/* Container drop zone */
#assignments-list {
    min-height: 200px;
    position: relative;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
    font-size: 3rem;
    color: rgba(251, 191, 36, 0.3);
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .criterion-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .assignment-card .assignment-actions {
        flex-direction: column;
    }
    
    .assignment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .assignment-status-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-toggle {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Student Submission Styles */
.submission-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.assignment-selection-section,
.submission-form-section,
.submission-results-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.submission-type-selector {
    margin-bottom: 2rem;
}

.submission-type-selector h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.submission-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.submission-option {
    cursor: pointer;
    display: block;
}

.submission-option input[type="radio"] {
    display: none;
}

.option-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.option-content i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.option-content span {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-content small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.submission-option:hover .option-content {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.submission-option input[type="radio"]:checked + .option-content {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.submission-method {
    margin: 1.5rem 0;
}

.character-count {
    text-align: right;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.assignment-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.assignment-info-card h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.assignment-info-card .assignment-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.assignment-info-card .assignment-meta span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignment-info-card .assignment-files {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.assignment-info-card .assignment-files button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* AI Feedback Card */
.ai-feedback-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.feedback-list {
    margin: 0;
    padding-left: 20px;
}

.feedback-list li {
    margin-bottom: 8px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.criterion-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.criterion-score {
    background: rgba(30, 64, 175, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.criterion-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.criterion-points {
    font-weight: bold;
    color: #fbbf24;
    font-size: 0.95rem;
}

.score-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
    background: rgba(30, 64, 175, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.score-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.2rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.assignment-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-style: italic;
}



.feedback-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Name Input Modal */
.name-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.name-modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.name-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.name-modal-header h3 {
    color: #fbbf24;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.name-modal-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

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

.name-input-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fbbf24;
}

.name-input-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.name-input-form input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.name-input-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.name-input-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.name-input-form .btn {
    padding: 12px 24px;
    font-size: 1rem;
}

.ai-feedback-card .feedback-section {
    margin-bottom: 2rem;
}

.ai-feedback-card .feedback-section h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-feedback-card .feedback-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 3px solid #fbbf24;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.selected-assignment-info {
    margin-bottom: 2rem;
}

/* Student Assignment Cards */
.student-assignment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

.student-assignment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.student-assignment-card:active {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.5);
}

.student-assignment-card h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.student-assignment-card .assignment-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.assignment-status.available {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.assignment-status.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.assignment-status.upcoming {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .submission-options {
        grid-template-columns: 1fr;
    }
    
    .assignment-info-card .assignment-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .assignment-info-card .assignment-files {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
    }
}

/* Authentication Styles */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.auth-modal .form-group {
    margin-bottom: 1.5rem;
}

.auth-modal input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    text-align: center;
}

.auth-modal input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.auth-modal input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-help {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.logout-button {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Compact Feedback Summary */
.feedback-summary {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(30, 64, 175, 0.05));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.quick-feedback {
    margin: 1rem 0;
}

.criterion-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.criterion-chip {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.expand-details-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.expand-details-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.detailed-feedback {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Assignment Chat Interface */
.assignment-chat-section {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 58, 138, 0.05));
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.assignment-chat-section .chat-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 0.5rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.assignment-chat-section .chat-header h4 {
    color: #fbbf24;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.assignment-chat-section .chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.assignment-chat-section .message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    max-width: 85%;
}

.ai-message .message-content {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    margin-right: auto;
}

.user-message .message-content {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-content i {
    color: #fbbf24;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.user-message .message-content i {
    color: #3b82f6;
}

.message-content span {
    color: white;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message-content .message-text {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-line;
}

.message-content .message-text br {
    margin-bottom: 0.5rem;
}

/* Style bullet points in chat messages */
.message-content .message-text {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-content .message-text br {
    display: block;
    margin-bottom: 0.5rem;
}

/* Ensure bullet points are properly spaced */
.message-content .message-text br + • {
    margin-left: 0.5rem;
}

.chat-input-section {
    margin-top: 1rem;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#assignment-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#assignment-chat-input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

#assignment-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#assignment-chat-send {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e3a8a;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

#assignment-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

#assignment-chat-send:active {
    transform: translateY(0);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.suggestion-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    transform: translateY(-1px);
}

/* Base Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 1rem;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 58, 138, 0.5);
}

.modal-header h2 {
    color: #fbbf24;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Rubric Generator Styles */
.rubric-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.option-separator {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.upload-option {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.rubric-generator-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.form-section h3 {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.grid-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.grid-info {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.grid-info span {
    color: #fbbf24;
    font-weight: 600;
}

.rubric-grid-container {
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

.rubric-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.rubric-grid th,
.rubric-grid td {
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.rubric-grid th {
    background: rgba(30, 58, 138, 0.3);
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
}

.criteria-header {
    width: 25%;
    background: rgba(251, 191, 36, 0.2) !important;
}

.score-header {
    width: 18.75%;
}

.score-range {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.rubric-grid td {
    background: rgba(255, 255, 255, 0.02);
}

.rubric-grid td:first-child {
    background: rgba(251, 191, 36, 0.1);
    font-weight: 500;
    color: #fbbf24;
    word-wrap: break-word;
    white-space: normal;
    vertical-align: top;
    padding: 1rem 0.75rem;
}

.editable-cell {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    resize: vertical;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
}

.editable-cell:focus {
    outline: 2px solid #fbbf24;
    outline-offset: -2px;
    background: rgba(251, 191, 36, 0.05);
}

.editable-cell::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.criteria-cell {
    background: transparent;
    border: none;
    color: #fbbf24;
    width: 100%;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    word-wrap: break-word;
    white-space: normal;
    resize: vertical;
    min-height: 60px;
    line-height: 1.3;
}

.criteria-cell:focus {
    outline: 2px solid #fbbf24;
    outline-offset: -2px;
    background: rgba(251, 191, 36, 0.1);
}

.generate-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.iste-selector {
    margin-top: 1rem;
}

.iste-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.iste-option {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iste-option:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.iste-option.selected {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

.iste-option h4 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.iste-option p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Rubric Preview Styles */
.rubric-preview {
    color: white;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.preview-header h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.preview-header h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.preview-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.preview-table th,
.preview-table td {
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
    line-height: 1.4;
}

.preview-table th {
    background: rgba(30, 58, 138, 0.5);
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
}

.preview-table td {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rubric-generator-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .grid-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .rubric-grid {
        min-width: 600px;
    }
    
    .generate-controls {
        flex-direction: column;
        align-items: center;
    }

    .preview-table {
        font-size: 0.8rem;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 0.5rem;
    }
}

/* Landing Page Styles */
.back-to-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.back-to-home:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.back-to-home i {
    font-size: 0.8rem;
}

.unit-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.unit-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.unit-card.coming-soon {
    opacity: 0.6;
    background: #f8f9fa;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.unit-header i {
    font-size: 1.5em;
    color: #007bff;
}

.unit-features {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
} 