/* MCAST LMS Frontend Styles */

* {
    box-sizing: border-box;
}

/* Resources Grid */
.mcast-lms-resources {
    padding: 20px 0;
}

.mcast-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.mcast-resource-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mcast-resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 67, 0.25);
}

.resource-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.resource-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.resource-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
}

.resource-category {
    display: inline-block;
    background: #e8e8f5;
    color: #000043;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.no-resources {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

/* Assignments Grid */
.mcast-lms-assignments {
    padding: 20px 0;
}

.mcast-assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.mcast-assignment-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mcast-assignment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 67, 0.25);
}

.assignment-header {
    background: #000043;
    color: white;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assignment-hours {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.assignment-body {
    padding: 20px;
}

.assignment-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.assignment-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
}

.assignment-criteria {
    color: #000043;
    font-size: 13px;
    margin: 0 0 15px;
}

.assignment-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.assignment-marks {
    background: #e8e8f5;
    color: #000043;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.assignment-deadline {
    font-size: 13px;
    color: #666;
}

.assignment-download {
    display: inline-block;
    background: linear-gradient(135deg, #000043 0%, #1a1a6b 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.assignment-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 67, 0.3);
}

.no-assignments {
    text-align: center;
    color: #666;
    padding: 40px;
    font-size: 16px;
}

/* Upload Portal */
.mcast-lms-upload-portal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 0;
}

.upload-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid #000043;
}

.upload-header h2 {
    color: #000043;
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}

.upload-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.upload-instructions {
    background: #f8f9fa;
    border-left: 4px solid #000043;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.upload-instructions h3 {
    color: #000043;
    font-size: 16px;
    margin: 0 0 10px;
}

.upload-instructions ol {
    margin: 0 0 0 20px;
    color: #666;
    line-height: 1.8;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #000043;
}

/* Assignment Details */
.assignment-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.details-card h4 {
    color: #000043;
    margin: 0 0 10px;
    font-size: 18px;
}

.details-card p {
    color: #666;
    margin: 0 0 15px;
    line-height: 1.6;
}

.details-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

/* File Upload */
.file-upload-wrapper input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #000043;
    border-radius: 8px;
    cursor: pointer;
}

.file-info {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #000043 0%, #1a1a6b 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 67, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Upload Message */
.upload-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.upload-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* My Submissions */
.my-submissions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.my-submissions h3 {
    color: #000043;
    font-size: 20px;
    margin: 0 0 20px;
}

.submissions-table {
    width: 100%;
    border-collapse: collapse;
}

.submissions-table thead {
    background: #f8f9fa;
}

.submissions-table th,
.submissions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.submissions-table th {
    color: #000043;
    font-weight: 600;
    font-size: 13px;
}

.submissions-table td {
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-submitted {
    background: #FFC107;
    color: #000;
}

.status-graded {
    background: #4CAF50;
    color: white;
}

.no-submissions {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* Footer */
.upload-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-container {
        padding: 30px 20px;
    }
    
    .upload-header h2 {
        font-size: 24px;
    }
    
    .mcast-resources-grid,
    .mcast-assignments-grid {
        grid-template-columns: 1fr;
    }
    
    .details-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .submissions-table {
        font-size: 12px;
    }
    
    .submissions-table th,
    .submissions-table td {
        padding: 8px;
    }
}
