# ------ css/style.css ------
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #3498db;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav {
    background-color: #2980b9;
    padding: 0.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

h2 {
    color: #2c3e50;
}

/* Κουμπιά και φόρμες */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Μηνύματα επιτυχίας και σφάλματος */
.success {
    background-color: #2ecc71;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.error {
    background-color: #e74c3c;
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Πίνακες */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

table th,
table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

table tr {
    height: 40px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Ειδικά στυλ για ολοκληρωμένες παραγγελίες */
.completed-order {
    background-color: #d4edda;
}

/* Σελιδοποίηση */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: #3498db;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Inline φόρμες και κουμπιά ενεργειών */
.inline-form {
    display: inline-block;
    margin-right: 10px;
}

.inline-form input,
.inline-form select,
.inline-form button {
    display: inline-block;
    width: auto;
    margin-right: 5px;
}

.edit-btn,
.delete-btn {
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
}

.edit-btn {
    background-color: #3498db;
}

.delete-btn {
    background-color: #e74c3c;
}

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

.delete-btn:hover {
    background-color: #c0392b;
}

.action-separator {
    display: inline-block;
    margin: 0 5px;
    color: #ccc;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    table {
        font-size: 0.8em;
    }
    
    table th,
    table td {
        padding: 5px;
    }
    
    .inline-form input,
    .inline-form select,
    .inline-form button {
        margin-bottom: 5px;
    }
}

table tr.completed-order {
    background-color: #d4edda !important;
}

table tr.ordered-order {
    background-color: #fff3cd !important;
}

table tr.completed-order:hover,
table tr.ordered-order:hover {
    opacity: 0.9;
}