/* Βασική ρύθμιση */


body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #1f2d3d;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    z-index: 999;
}
.sidebar a {
    color: white;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}
.sidebar a:hover {
    background-color: #2c3e50;
	color:#FFF!important;
	text-decoration:none!Important;
}
.sidebar .logo img {
    max-width: 150px;
    margin: 0 auto 20px;
    display: block;
}

/* Topbar */
.topbar {
    margin-left: 220px;
    background-color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 998;
}
.topbar .title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}
.topbar .top-menu a {
    margin-right: 10px;
    text-decoration: none;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 14px;
}
.topbar .top-menu a:hover {
    background-color: #0069d9;
}
.topbar .user-info {
    font-size: 14px;
    color: #666;
}

/* Content */
.content {
    margin-left: 220px;
    padding: 25px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
thead {
    background-color: #f1f3f5;
}
th, td {
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #ececec;
}
th {
    color: #555;
}
td a {
    color: #007bff;
    text-decoration: none;
}
td a:hover {
    text-decoration: underline;
}
tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Buttons */
button, .btn-edit {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin: 2px 0;
}
button {
    background-color: #dc3545;
    color: white;
}
button:hover {
    background-color: #c82333;
}
.btn-edit {
    background-color: #ffc107;
    color: #212529;
}
.btn-edit:hover {
    background-color: #e0a800;
}

/* Select Dropdown */
select {
    padding: 5px 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Flash messages */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Filter form */
.filter-form {
    margin-bottom: 15px;
}
.filter-form input,
.filter-form select,
.filter-form button {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
}
.pagination a {
    padding: 6px 10px;
    margin-right: 5px;
    border-radius: 5px;
    background-color: #e9ecef;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
.pagination a.active {
    background-color: #007bff;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .topbar, .content {
        margin-left: 0;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        background: #fff;
    }
    td {
        padding: 8px 10px;
        text-align: right;
        position: relative;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        font-weight: bold;
        text-align: left;
        color: #333;
    }
}
/* Row hover effect */
table tbody tr:hover {
    background-color: #f0f4f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background 0.2s ease;
}

/* Button hover & transition */
button, .btn-edit, .topbar .top-menu a {
    transition: all 0.2s ease-in-out;
}
button:hover, .topbar .top-menu a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Role badges */
td.role-badge {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    display: inline-block;
    text-align: center;
}
.role-owner {
    background-color: #e0f7fa;
    color: #00796b;
}
.role-tenant {
    background-color: #fbe9e7;
    color: #d84315;
}
.role-admin {
    background-color: #ede7f6;
    color: #5e35b1;
}

/* Smooth input focus */
input:focus, select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.2);
}

/* Highlight filter button */
.filter-form button {
    background-color: #007bff;
    color: white;
    border: none;
}
.filter-form button:hover {
    background-color: #0056b3;
}


/* Ρόλος: κάθετη στοίχιση στο κέντρο */
td.role-badge {
    vertical-align: middle;
}

/* Κουμπί επαναφοράς */
.filter-form a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e2e6ea;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
}
.filter-form a:hover {
    background-color: #d6d8db;
    border-color: #bbb;
}

td.role-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    width: 90px;
    text-align: center;
    margin: auto;
	    border: none;
}
/* Topbar με ελαφρύ φόντο */
.topbar {
    background-color: #e8f1fa;
    border-bottom: 1px solid #9dcaf7;
}

.content, table, .filter-form {
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.role-owner:hover { background-color: #d1f1ec; }
.role-tenant:hover { background-color: #fdd7d3; }
.role-admin:hover { background-color: #e8dcfb; }
td.role-badge {
    height: 100%;
}

td.role-badge > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    width: 90px;
    text-align: center;
	    border: none;
}

.sidebar {
    width: 220px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298); /* Νέα αισθητική */
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", sans-serif;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
}
.sidebar .logo img {
    max-width: 120px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.sidebar a {
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease-in-out, padding-left 0.2s ease;
}
.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}
.sidebar a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.sidebar a i {
    margin-right: 10px;
}
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    min-width: 200px;
    flex: 1;
    text-align: center;
}

.stat-item h3 {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 24px;
    font-weight: bold;
    color: #2a2a2a;
}

.charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}


.charts > div {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}eight: 300px;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}


.user-info {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    color: #f44336;
    font-size: 16px;
    padding: 6px 8px;
    text-decoration: none;
    border-radius: 5px;
    background-color: #fce4ec;
    transition: all 0.2s ease-in-out;
}
.logout-btn:hover {
    background-color: #f8bbd0;
    color: #c2185b;
}
.logout-btn i {
    margin: 0;
}
@media (max-width: 768px) {
    .charts {
        grid-template-columns: 1fr;
    }
}



