* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container, .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    padding: 8px;
}

small {
    color: #666;
    font-size: 14px;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

/* Admin Panel Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
}

.submissions-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.submissions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: #6c757d;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-view {
    background-color: #28a745;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download {
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background-color: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .container, .admin-container {
        padding: 10px;
    }

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

    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* Add to assets/css/style.css */

.file-upload-section {
    transition: all 0.3s ease;
}

.file-upload-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-item {
    animation: slideIn 0.3s ease;
}

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

.remove-btn {
    transition: all 0.2s ease;
}

.remove-btn:hover {
    transform: scale(1.05);
}

.add-btn {
    transition: all 0.2s ease;
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .file-preview {
        margin-bottom: 10px;
    }

    .remove-btn {
        width: 100%;
    }
}

/* Empty state */
.file-list:empty:before {
    content: "Δεν έχουν επιλεχθεί αρχεία";
    display: block;
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}


.upload-progress {
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.upload-progress h3 {
    margin-bottom: 20px;
    color: #333;
}

#progressContainer {
    margin-bottom: 30px;
}

.file-progress-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.file-progress-name {
    font-weight: 500;
    color: #333;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-progress-percent {
    font-weight: bold;
    color: #007bff;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
            45deg,
            rgba(255,255,255,.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255,255,255,.15) 50%,
            rgba(255,255,255,.15) 75%,
            transparent 75%,
            transparent
    );
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.file-progress-status {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.total-progress {
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 6px;
    margin-top: 20px;
}

.total-progress p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #1976d2;
}

.total-progress .progress-bar {
    height: 25px;
}

.total-progress .progress-fill {
    background-color: #1976d2;
}

/* Responsive */
@media (max-width: 768px) {
    .file-progress-name {
        max-width: 60%;
    }
}




     /* Existing styles... */
 .file-upload-section {
     margin: 20px 0;
     padding: 20px;
     background-color: #f8f9fa;
     border-radius: 8px;
 }

.file-list {
    margin: 15px 0;
}

.file-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    gap: 10px;
}

.file-item input[type="file"] {
    flex: 1;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.remove-btn:hover {
    background-color: #c82333;
}

.add-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.add-btn:hover {
    background-color: #218838;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.upload-progress {
    display: none;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.file-count {
    background-color: #007bff;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 14px;
}

/* New styles for validation and terms */
.field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

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

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 15px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

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

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

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 5px;
}

.alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* Terms section */
.terms-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.checkbox-container {
    display: flex;
    align-items: start;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.terms-text {
    flex: 1;
    line-height: 1.5;
}

.terms-text a {
    color: #007bff;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #0056b3;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.terms-content {
    line-height: 1.6;
    color: #666;
}

.terms-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.btn-accept {
    background-color: #28a745;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-accept:hover {
    background-color: #218838;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}
