/* Student Work Uploader specific styles */
.studwork-container {
/*     max-width: 700px; */
    margin: 0 auto;
    padding: 2rem;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--card-shadow);
}

.back-button:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.studwork-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 108, 255, 0.1);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.studwork-form h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.session-info {
    background: rgba(100, 108, 255, 0.1);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    font-size: 1.1rem;
}

.session-info p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.session-info strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.permanent-cooldown {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid #e74c3c;
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.permanent-cooldown h3 {
    color: #e74c3c;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.permanent-cooldown p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.warning-note {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid #f1c40f;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.warning-note i {
    color: #f1c40f;
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(100, 108, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(100, 108, 255, 0.05);
}

/* File upload styles */
.file-upload-area {
    border: 3px dashed rgba(100, 108, 255, 0.3);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(100, 108, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(100, 108, 255, 0.1);
}

.file-upload-area.drag-over {
    border-color: var(--accent-color);
    background: rgba(100, 108, 255, 0.15);
}

.file-upload-area:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(100, 108, 255, 0.1);
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: var(--text-secondary);
    font-size: 1rem;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-input:disabled {
    cursor: not-allowed;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(100, 108, 255, 0.05);
    border-radius: 6px;
    font-size: 1rem;
}

.file-info p {
    margin: 0.25rem 0;
    color: var(--text-primary);
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-progress {
    margin-top: 1rem;
    height: 6px;
    background: rgba(100, 108, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.upload-info {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.upload-info p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-info i {
    color: #2ecc71;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 108, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e74c3c !important;
}

.success-message {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
    font-size: 1.1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    text-align: left;
    animation: fadeIn 0.5s ease;
    font-size: 1.1rem;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-message li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
}

.error-message li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    margin-top: 2.5rem;
    box-shadow: var(--card-shadow);
    font-size: 1.1rem;
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.6;
}

.info-card li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.char-count {
    text-align: right;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Lock system styles */
.locked-message {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 3px solid #e74c3c;
    box-shadow: var(--card-shadow);
    text-align: center;
    margin: 2rem 0;
}

.locked-message h2 {
    color: #e74c3c;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.locked-message p {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.lock-info {
    background: rgba(231, 76, 60, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #e74c3c;
}

.lock-info p {
    margin: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.lock-info strong {
    color: #e74c3c;
}

/* Status indicators */
.status-unlocked {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.status-locked {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .studwork-container {
        max-width: 95%;
        padding: 1rem;
    }

    .studwork-form {
        padding: 1.5rem;
    }

    .studwork-form h2 {
        font-size: 1.7rem;
    }

    .form-control {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }

    .file-upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .upload-text {
        font-size: 1.1rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .info-card,
    .success-message,
    .error-message,
    .permanent-cooldown {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .studwork-container {
        padding: 0.5rem;
    }

    .studwork-form {
        padding: 1.25rem;
    }

    .studwork-form h2 {
        font-size: 1.5rem;
    }

    .form-control {
        font-size: 1rem;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        font-size: 2rem;
    }

    .submit-btn {
        font-size: 1.1rem;
        padding: 0.9rem;
    }

    .info-card h3,
    .success-message h3,
    .error-message h3,
    .permanent-cooldown h3 {
        font-size: 1.3rem;
    }
}
