/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: #003087; /* UniSA Blue */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 40px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar a:hover, .navbar a.active {
    background-color: #00205b;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Section (Home Page) */
.hero {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.hero h1 {
    color: #003087;
    font-size: 28px;
    margin-bottom: 15px;
}

.hero p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-btn {
    background-color: #003087;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submission-table {
    width: 100%;
    border-collapse: collapse;
}

.submission-table th, .submission-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.submission-table th {
    background-color: #003087;
    color: white;
}

.submission-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.submission-table a {
    color: #003087;
    text-decoration: none;
}

.submission-table a:hover {
    text-decoration: underline;
}
.cta-btn:hover {
    background-color: #00205b;
}

.upload-box.dragover {
    background-color: #e6f0ff;
    border-color: #FF6F00;
}
.feedback-item {
    margin: 10px 0;
    border-left: 3px solid #003087;
    padding-left: 10px;
}

.feedback-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #003087;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    text-align: left;
}
.modal-content button {
    background: #003087;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
.feedback-item p {
    padding: 10px;
    color: #666;
}
.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.remove-btn:hover {
    background-color: #c82333;
}

/* Upload Section */
.upload-section, .results-section, .history-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #003087;
    margin-bottom: 15px;
    font-size: 20px;
}

.upload-box {
    border: 2px dashed #003087;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.upload-box p {
    color: #666;
    font-size: 14px;
}

.preview-area {
    margin-top: 20px;
    text-align: center;
}

.preview-area img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    background-color: #003087;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #00205b;
}

.results-box, .history-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    min-height: 200px;
}

.results-box p, .history-box p {
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #003087;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .navbar ul {
        margin-top: 10px;
    }
}