.upload-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.upload-container h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #000;
}

.upload-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.upload-form {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.upload-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #000, #333);
}

.upload-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    width: 100%;
}

.upload-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.file-upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.file-upload-box:hover {
    border-color: #000;
    transform: translateY(-2px);
}

.file-upload-box.highlight {
    border-color: #000;
    background-color: #f5f5f5;
}

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

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    width: 100%;
    pointer-events: none;
}

.file-label i {
    font-size: 2rem;
    color: #000;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.file-types {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

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

.file-item i {
    color: #fd4d4d;
    flex-shrink: 0;
}

.file-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.file-item .remove-file {
    margin-left: auto;
    color: #fd4d4d;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.file-item .remove-file:hover {
    opacity: 1;
}

.unit-info {
    margin-top: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    animation: slideDown 0.4s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

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

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.unit-header h3 {
    font-size: 1.1rem;
    color: #000;
    margin: 0;
}

.unit-badge {
    background-color: #000;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

.unit-code, .unit-title, .unit-year, .unit-semester {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.unit-code:focus, .unit-title:focus, .unit-year:focus, .unit-semester:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.error {
    border-color: #fd4d4d !important;
}

.upload-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.upload-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.progress-container {
    margin-top: 1.5rem;
    width: 100%;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #000, #333);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

#success-message {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    font-size: 3.5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#success-message h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

#success-message p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.upload-more-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-more-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Changed to display as a vertical list instead of a grid */
.upload-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 1.75rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: #000;
    font-size: 1.1rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
    .upload-container {
        padding: 0.75rem;
        margin: 0;
    }
    
    .upload-container h1 {
        font-size: 1.5rem;
    }
    
    .upload-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .upload-form {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .file-upload-box {
        padding: 1rem;
        min-height: 100px;
    }
    
    .file-label i {
        font-size: 1.75rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .unit-info {
        padding: 1rem;
    }
    
    .unit-header h3 {
        font-size: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-card h3 {
        font-size: 1rem;
    }
    
    .upload-btn, .upload-more-btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Make the page fill the entire viewport */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Ensure navbar spans full width */
.navbar {
    width: 100%;
    box-sizing: border-box;
}