/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    background-color: #0a0a0a;
    
}

/* Container Utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
header.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: #c9d2d5;
    height: 80px;
}

.spacer {
    flex-grow: 1;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end; /* ✅ αυτό σπρώχνει προς τα δεξιά */
}

/* Header */
header {
    background: #c9d2d5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 1.5rem;
    height: 80px;
    gap: 1rem;
    width: 100%;
    
    position: relative;
    z-index: 100;
}



.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav ul li {
    position: relative;
    display: inline-block;
}

.admin-nav ul li a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.admin-nav ul li a:hover {
    background-color: #ece6e6;
}


/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
    
}

/* Dropdown button */
.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Dropdown content hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 6px;
}

/* Dropdown links */
.dropdown-content a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ddd;
}

/* Hover styles */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: Change button color on hover */
.dropdown:hover .dropbtn {
    background-color: #2980b9;
}


.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}



.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


.lang-btn {
    background-color: #3a0ca3;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background-color: #4cc9f0;
}



nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff9800;
}

.nav-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* απόσταση μεταξύ των κουμπιών */
}



/* Main Background */
main.background {
    background-image: url('../images/ergotrack_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* ✅ ΚΡΑΤΑ ΣΤΑΘΕΡΟ ΤΟ ΦΟΝΤΟ */
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}





/* Μπορείς να το προσθέσεις στο style.css */
.styled-form {
  max-width: 400px;
  margin: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.styled-form h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}


.styled-input {
  padding: 8px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

.checkboxes label {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.styled-form button {
  margin-top: 15px;
  padding: 10px;
  background-color: #00b4d8;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.styled-form button:hover {
  background-color: #0096c7;
}



.user-header {
    background: #1d3557;
    padding: 1.5rem 2rem;
    color: #fff;
    align-items: flex-end; /* Ευθυγράμμιση κάτω */
    margin-left: auto;
    border-radius: 12px;
    margin: 2rem 0 2rem 5%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.user-header h1 {
    align-items: flex-end; /* Ευθυγράμμιση κάτω */
    margin-left: auto;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f1faee;
    
}

.logout-btn {
    
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-weight: bold;
   
}

.logout-btn:hover {
    background-color: #d62828;
}



/* Ημιδιαφανές overlay που προσαρμόζεται στο περιεχόμενο */
.overlay {
    background: rgba(239, 234, 234, 0.5);
    max-width: 1000px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


/* Hero Text Styling (inspired by abstract neon design) */
.hero-text {
    text-align: center;
    background: linear-gradient(135deg, #3a0ca3, #4361ee, #4cc9f0);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.5);
    color: #f1cccc;
    max-width: 800px;
    /* ΝΕΑ ΠΡΟΣΘΗΚΗ – Περιορισμός ύψους */
    max-height: 100%;
    overflow: auto;
    animation: fadeIn 2s ease-in-out;
    
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Φόρμα - Εμφάνιση πεδίων */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;              /* Κεντράρισμα του form οριζόντια */
    align-items: center;         /* Κεντράρισμα των παιδιών του form */
}


/* Ετικέτες */
form label {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.3rem;
    display: block;
}

/* Input / Textarea styling */
form input,
form textarea,
form select {
    background: #f2f2f2;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    background: #fff;
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.6);
}


/* Placeholder */
form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Κουμπιά */
form button,
.button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(76, 201, 240, 0.3);
}


form button:hover,
.button:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.8);
    transform: scale(1.03);
}
.login-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem; /* Ενιαίο κενό μεταξύ όλων των στοιχείων */
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Κεντράρει τα παιδιά οριζόντια */
    margin-bottom: 12px;      /* Απόσταση μεταξύ των πεδίων */
}


input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}






/* Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cta-buttons .row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  background: #ff6d00;
  color: white;
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-buttons .btn:hover {
  background: #ffa726;
}


/* Footer */
footer {
    background-color: #1e1e2f;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #ccc;
}
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 0.5rem 1rem;
        height: auto;
        gap: 0.5rem;
    }

    .header-container {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
     .logo-img {
        height: 40px;
    }

    .language-switcher {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-user-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dropbtn,
    .logout-btn,
    .lang-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .logo-img {
        height: 50px;
    }
    
}
/* --- Footer --- */
/* --- Clean footer bar --- */
.site-footer{
  background:#0b1220; /* λίγο πιο σκούρο από πριν */
  color:#c8d3e0;
  padding:16px 18px;
  border-top:1px solid rgba(148,163,184,.18);
  font-size:14px;
}

.site-footer a{
  color:#e6edf6;
  text-decoration:none;
  opacity:.92;
  transition:opacity .15s ease, color .15s ease;
}
.site-footer a:hover{ opacity:1; text-decoration:underline; }

.footer-wrap{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:space-between;
  min-height:48px;
}

.footer-left, .footer-right{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.brand{ font-weight:600; letter-spacing:.2px; }
.muted{ color:#94a3b8; font-size:13px; }

.footer-center{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  line-height:1.4;
  padding:4px 8px;
  border-radius:8px;
  background:rgba(255,255,255,0.02); /* ελαφρύ veil */
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.10);
}
.footer-center .sep{ color:#6b7280; }
/* --- Modal (dialog) — centered & a bit narrower --- */
/* Modal: center + wider */
#legalModal[open]{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

#legalModal::backdrop { background: rgba(2,6,23,.65); }

#legalModal{ border:0; padding:0; background:transparent; margin:0; }

#legalModal .modal-card{
  /* πιο φαρδύ ώστε να μην δείχνει «κολλημένο» αριστερά */
  width: min(940px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #0b1220;
  color: #e6edf6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(148,163,184,.22);
}

/* Header / Footer */
#legalModal .modal-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:14px 16px;
  background: linear-gradient(180deg,#0f172a 0%,#0b1220 100%);
  border-bottom:1px solid rgba(148,163,184,.16);
  position: sticky; top: 0; z-index: 2;
}
#legalModal .modal-footer{
  display:flex; justify-content:flex-end; gap:8px;
  padding:12px 14px; border-top:1px solid rgba(148,163,184,.16);
  background:#0b1220;
}

/* Body height */
#legalModal .modal-body{ height: min(70vh, 760px); background:#0f172a; }
#legalModal iframe{ width:100%; height:100%; border:0; display:block; background:#0f172a; }

/* “Χ” πιο επαγγελματικό */
#legalModal .modal-close{
  appearance:none;
  width:36px; height:36px;
  display:grid; place-items:center;
  background:#111827;
  color:#e6edf6;
  border:1px solid rgba(148,163,184,.28);
  border-radius:10px;
  cursor:pointer;
  transition:background .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-size:18px; line-height:0;
}
#legalModal .modal-close:hover{
  background:#0b1220;
  border-color: rgba(148,163,184,.4);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.25);
}

@media (max-width: 420px){
  #legalModal .modal-card{ width: 94vw; }
}

  /* Footer legal list (διαχωριστές) */
  .footer-legal{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
  .footer-legal li{display:inline-flex;align-items:center}
  .footer-legal li+li::before{content:"·";opacity:.6;margin:0 6px}
  .footer-legal a{text-decoration:none}
  .footer-legal a:hover{text-decoration:underline}
/* Responsive stacking */
@media (max-width: 900px){
  .footer-wrap{ flex-direction:column; align-items:stretch; gap:10px; }
  .footer-left, .footer-right{ align-items:center; text-align:center; }
  .footer-center{ order:3; }
}
@media (max-width: 420px){
  .site-footer{ font-size:13px; }
  .muted{ font-size:12px; }
  .footer-center{ gap:8px; }
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


    

@media (max-width: 480px) {
    
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
} 