/* -------------------- ΒΑΣΙΚΟ LAYOUT -------------------- */

body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* -------------------- ΤΙΤΛΟΙ -------------------- */

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

/* -------------------- ΜΠΑΡΑ ΚΟΥΜΠΙΩΝ ΠΑΝΩ -------------------- */

.top-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

/* -------------------- ΚΟΥΜΠΙΑ -------------------- */

button, .btn {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #0056b3;
}

/* -------------------- ΔΙΣΤΗΛΗ ΦΟΡΜΑ (ERP STYLE) -------------------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.form-grid label {
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.full-width {
    grid-column: 1 / 3;
}

/* -------------------- ΠΙΝΑΚΕΣ -------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #007bff;
    color: white;
    padding: 6px 8px;
    text-align: left;
    font-size: 13px;
}

table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

table tr:hover {
    background: #f1f1f1;
}

/* -------------------- ΚΟΥΜΠΙΑ ΛΙΣΤΑΣ -------------------- */

.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 12px;
}

.edit-btn {
    background: #28a745;
}

.delete-btn {
    background: #dc3545;
}

.edit-btn:hover {
    background: #1e7e34;
}

.delete-btn:hover {
    background: #b52a37;
}

/* -------------------- ΜΕΝΟΥ -------------------- */

.navbar {
    background: #333;
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a:hover {
    background: #575757;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 20px;
    background: #333;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #f9f9f9;
    min-width: 180px;
    z-index: 1;
    border: 1px solid #ccc;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}
