/* Βασικό στυλ για το body και το header */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212; /* Σκούρο φόντο για να ταιριάζει με την εικόνα */
    color: #f8f9fa; /* Ανοιχτό χρώμα για το κείμενο */
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* This ensures the navbar is on top of other content */
}

/* Στυλ για το navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem clamp(1rem, 5vw, 2rem);
    background-color: #212529;
    color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5), 0 0 20px rgba(138, 43, 226, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 2rem;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bfff;
    background: linear-gradient(90deg, #00bfff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* Αποτρέπει το σπάσιμο της γραμμής */
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-links li a, .nav-links li button {
    color: #f8f9fa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links li a:hover, .nav-links li button:hover {
    color: #00bfff;
}

/* Στυλ για το drop-down */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #f8f9fa;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #2c2c2c;
}

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

.dropbtn {
    background-color: transparent;
    color: #f8f9fa;
    padding: 16px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn i {
    font-size: 1.2rem;
}

/* Προσθήκες για το responsive menu χωρίς JS */
.menu-toggle {
    display: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #f8f9fa;
    z-index: 1001;
}

/* Γενική ρύθμιση για όλη τη σελίδα */
body {
    overflow-x: hidden; /* Αποτρέπει την οριζόντια κύλιση */
}

.main-content {
    max-width: 100%;
    box-sizing: border-box; /* Διασφαλίζει ότι το padding και το border περιλαμβάνονται στο πλάτος */
}

/* Global mobile viewport optimization */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .container, .main-content, main {
        width: 100%;
        max-width: 100vw;
        padding-left: clamp(0.5rem, 2vw, 1rem);
        padding-right: clamp(0.5rem, 2vw, 1rem);
    }
}

/* Global table styling to ensure borders appear */
th, td {
    border: 1px solid #333 !important;
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
}

table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    background-color: #1a1a1a !important;
    table-layout: auto !important;
    word-wrap: break-word !important;
    border-collapse: collapse !important;
    border: none !important;
}

th {
    background-color: #2d2d2d !important;
    font-weight: 600 !important;
    color: #f0f0f0 !important;
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
    table {
        font-size: 0.8rem !important;
        overflow-x: auto !important;
        display: block !important;
        white-space: nowrap !important;
    }
    
    th, td {
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 0.7rem !important;
    }
    
    th, td {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
}

/* Enhanced Mobile Responsive Design for Navigation */

/* Large tablet and smaller desktop */
@media (max-width: 1200px) {
    .navbar {
        padding: 0.5rem clamp(0.5rem, 3vw, 1.5rem);
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Small tablet */
@media (max-width: 992px) {
    .navbar {
        padding: 0.4rem 1rem;
    }
    
    .logo-img {
        height: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links li a, .nav-links li button {
        font-size: 0.9rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
        flex-wrap: nowrap;
        position: relative;
        min-height: 60px;
    }
    
    .logo-img {
        height: 2.2rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #212529;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 8px 8px;
        
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        font-size: 0.9rem;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a,
    .nav-links li button {
        display: block;
        padding: 0.6rem 1rem;
        width: auto;
        font-size: 1rem;
    }

    .dropdown .dropbtn {
        display: none;
    }

    .dropdown-content {
        position: static;
        display: flex;
        flex-direction: column;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-content a {
        text-align: center;
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 600px) {
    .navbar {
        padding: 0.7rem 0.8rem;
        min-height: 56px;
    }
    
    .logo-img {
        height: 2rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hamburger-menu {
        font-size: 1.7rem;
        padding: 0.4rem;
    }
    
    .nav-links li a,
    .nav-links li button {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .dropdown-content a {
        font-size: 0.85rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.7rem;
        min-height: 52px;
    }
    
    .logo-img {
        height: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hamburger-menu {
        font-size: 1.6rem;
        padding: 0.3rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem 0.6rem;
        min-height: 48px;
    }
    
    .logo-img {
        height: 1.6rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hamburger-menu {
        font-size: 1.5rem;
        padding: 0.2rem;
    }
}

/* Footer */
.main-footer {
    background-color: #212529; /* Σκούρο φόντο */
    color: #f0f0f0;
    padding: 2rem;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Σπρώχνει τα στοιχεία στις άκρες */
    align-items: center; /* Κεντράρει κάθετα */
    max-width: 1200px;
    margin: 0 auto;
}

/* Αριστερή Στήλη: Copyright */
.footer-left p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin: 0;
}

/* Κεντρική Στήλη: Links */
.footer-center ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem; /* Κενό μεταξύ των links */
}

.footer-center a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-center a:hover {
    color: #fff;
}

/* Δεξιά Στήλη: Social Icons */
.footer-right a i {
    font-size: 2em; /* ή όποιο άλλο μέγεθος θέλεις */
}

.footer-right a:hover {
    transform: scale(1.1); /* Εφέ μεγέθυνσης στο hover */
}

/* Responsive Design για μικρές οθόνες */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Στήλες η μία κάτω από την άλλη */
        text-align: center;
        gap: 1.5rem;
    }

    .footer-center ul {
        justify-content: center;
    }
}


main {
  flex-grow: 1;
  padding: 20px 0; /* Vertical padding only */
}

.container {
  width: min(92vw, 1200px);
  margin-inline: auto;
  padding-inline: clamp(8px, 3vw, 32px);
}

main {
  flex-grow: 1;
  padding: 20px 0; /* Vertical padding only */
}
