/* 1. ΒΑΣΙΚΗ ΔΟΜΗ */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Χώρος μόνο για το header */
}

/* 2. ΣΤΑΘΕΡΟ HEADER */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* 3. ΤΟ ΚΟΛΠΟ ΓΙΑ ΤΟ FOOTER */
main, .container {
    flex: 1 0 auto; /* Σπρώχνει το footer τέρμα κάτω, αλλά οργανικά */
}

footer {
    flex-shrink: 0;
    background: #212529;
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
}

/* 4. ΜΟΝΟ ΓΙΑ PC (Εδώ το θέλεις σταθερό) */
@media (min-width: 992px) {
    body {
        padding-bottom: 0px; /* Αέρας για να μην κρύβονται τα κουμπιά στο PC */
    }
	.attachment-img {
        max-width: 120px;
        max-height: 120px;
    }
}

/* 5. ΡΥΘΜΙΣΕΙΣ ΓΙΑ ΚΙΝΗΤΑ (Dashboard & Images) */
@media (max-width: 991px) {
    .table-responsive {
        margin-bottom: 20px;
        border: none;
    }
    .table td, .table th {
        white-space: nowrap;
    }
    /* Στο κινητό το footer ΔΕΝ είναι fixed, άρα padding-bottom = 0 */
    body {
        padding-bottom: 0;
    }
    .attachment-img {
        max-width: 120px;
        max-height: 120px;
    }
}

/* ΓΕΝΙΚΑ STYLES */
.chat-box { 
    max-height: 450px; 
    overflow-y: auto; 
    background: #f8f9fa; 
    padding: 15px; 
    border-radius: 8px; 
}
.attachment-img { 
    border-radius: 5px; 
    border: 1px solid #ddd; 
    margin-top: 10px; 
    object-fit: cover;
}