@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');
/* ==========================================================================
   ΒΑΣΙΚΟ CSS
   ========================================================================== */

:root {
    color-scheme: light;
    --bg-1: #f5f7ff;
    --bg-2: #edf2ff;
    --card: #ffffff;
    --text: #1f2a44;
    --muted: #5f6b86;
    --accent: #4361ee;
    --accent-hover: #2f4ed8;
    --danger: #b42318;
    --ok: #067647;
    --border: #d9e1ff;
    --border-highlight: #4361ee;
    --card-glow: rgba(67, 97, 238, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(1200px 700px at 10% 10%, var(--bg-2), var(--bg-1));
    color: var(--text);
    place-items: center;
    overflow-x: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    text-align: center;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: floatGlow 9s ease-in-out infinite;
}

body::before {
    top: -90px;
    left: -70px;
    background: rgba(103, 126, 255, 0.42);
}

body::after {
    right: -90px;
    bottom: -100px;
    background: rgba(91, 222, 184, 0.28);
    animation-delay: 1.8s;
}

.login-wrap {
    width: min(560px, 100%);
}

.logo-wrap {
    width: 100%;
    text-align: center;
    margin: 25px auto 20px auto;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow:
        0 10px 25px rgba(19, 43, 116, 0.06),
        0 4px 12px rgba(20, 47, 130, 0.04);
    transition: box-shadow .25s cubic-bezier(0.4, 0, 0.2, 1), border-color .25s ease;
    position: relative;
}

.header {
    text-align: center;
}

.header-logo {
    max-width: 90%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* FOOTER STYLES */
.app-footer {
    margin-top: 40px;
    margin-bottom: 25px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    background: linear-gradient(145deg, #ffffff 0%, #f6f4fe 100%);
    border: 2px solid #c8c2dc;
    border-radius: 16px;
    padding: 25px 25px;
    line-height: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 4px 0 0 #b8b0d8,
        0 6px 12px rgba(95, 85, 160, 0.08);
}

.footer-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    white-space: nowrap;
}

.version-text {
    font-size: 0.88em;
    font-weight: 700;
    color: #718096;
}

.owner-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82em;
    color: #4a5568;
    font-weight: 600;
}

.owner-name {
    font-weight: 700;
}

.owner-mail {
    color: #718096;
    opacity: 0.9;
}

.footer-center {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.footer-user-row {
    font-size: 1em;
    font-weight: 800;
    color: #4a4285;
}

.footer-addr-row {
    font-size: 0.88em;
    color: #6b6399;
    font-weight: 600;
}

.footer-contact-row {
    font-size: 0.88em;
    color: #6b6399;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.footer-splitter {
    color: #c8c2dc;
    font-weight: bold;
}

.footer-right {
    flex: 2;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-contact-row {
        flex-direction: column;
        gap: 4px;
    }

    .footer-splitter {
        display: none;
    }

    .footer-left,
    .footer-right {
        flex: none;
        width: 100%;
    }

    .footer-right {
        display: none;
    }
}

.login-card:hover {
    border-color: #a3b8ff;
    box-shadow:
        0 30px 60px rgba(19, 43, 116, 0.16),
        0 12px 24px rgba(67, 97, 238, 0.08),
        0 0 0 1px rgba(67, 97, 238, 0.15);
}

.title {
    margin: 0 0 8px;
    font-size: 1.7rem;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 12px rgba(66, 100, 232, 0.12);
}

.subtitle {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color .2s ease;
}

.field:focus-within label {
    color: var(--accent);
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cfd9ff;
    background: #ffffff;
    font-size: 0.98rem;
    color: var(--text);
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(59, 76, 142, 0.03);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
    border-color: #8fa7ff;
    background-color: #fbfbfe;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.06);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.22);
}

input[readonly] {
    background: #f2f5ff;
    color: #4d5f92;
    cursor: not-allowed;
    box-shadow: none;
}

input[readonly]:hover {
    border-color: #cfd9ff;
    background-color: #f2f5ff;
    box-shadow: none;
}

.robot-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #d9e1ff;
    border-radius: 12px;
    background: #fbfcff;
    margin-bottom: 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.robot-check:hover {
    border-color: #a3b8ff;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.08);
}

.robot-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.robot-check label {
    margin: 0;
    font-weight: 500;
}

button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #5d77ff, var(--accent));
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(67, 97, 238, 0.25);
    transition: box-shadow .2s ease, background .2s ease, transform .1s ease, opacity .15s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left .45s ease;
}

button:hover {
    background: linear-gradient(180deg, #4f6aff, var(--accent-hover));
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

button:hover::before {
    left: 130%;
}

button:active {
    opacity: 0.9;
    transform: scale(0.99);
}

.msg {
    margin: 0 0 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.94rem;
    animation: fadeSlideIn .3s ease;
}

.msg.error {
    background: #fee4e2;
    border: 1px solid #ffd3cf;
    color: var(--danger);
    box-shadow: 0 4px 10px rgba(180, 35, 24, 0.05);
}

.msg.success {
    margin-top: 18px;
    background: #dcfae6;
    border: 1px solid #b7efca;
    color: var(--ok);
    box-shadow: 0 4px 10px rgba(6, 118, 71, 0.05);
}

.result-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: #0f5132;
    font-size: 0.92rem;
}

.result-grid div {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e1ebd6;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(16, 77, 56, 0.03);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.result-grid div:hover {
    border-color: #bad3a7;
    box-shadow: 0 6px 14px rgba(16, 77, 56, 0.08);
}

.page-shell {
    width: min(980px, 100%);
}

.page-card {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.field-full {
    grid-column: 1 / -1;
}

.actions {
    margin-top: 14px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(8px, -10px) scale(1.02);
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 20px;
    }

    .result-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ✨ ΣΤΥΛ ΕΠΕΞΕΡΓΑΣΙΑΣ (myPersonEdit.php) - STRONG BLUE-PURPLE PALETTE
   Απομονωμένα με το '.edit-page' ώστε να μη χαλάνε το υπόλοιπο app
   ========================================================================== */



body.edit-page {
    font-family: 'Nunito', 'Arial', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, #e8eaff 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #ede8ff 0%, transparent 50%),
        linear-gradient(180deg, #eef0fc 0%, #e2dff0 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    display: block;
    /* Override flex properties from base body */
}

body.edit-page::before,
body.edit-page::after {
    display: none;
    /* Disable the base app glow balls */
}

.edit-page .container {
    width: 95%;
    max-width: 1500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f5f4fc 100%);
    padding: 38px;
    border-radius: 24px;
    border: 1px solid #c8c2dc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        0 14px 0 -2px #a8a0d0,
        0 16px 0 -1px #b8b0d8,
        0 20px 40px -8px rgba(95, 85, 160, 0.35),
        0 30px 60px -16px rgba(74, 66, 133, 0.2);
    position: relative;
    overflow: hidden;
}

.edit-page .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
            #9890cc 0%,
            #7a72b8 25%,
            #5a5295 50%,
            #7a72b8 75%,
            #9890cc 100%);
    box-shadow: 0 2px 4px rgba(95, 85, 160, 0.3);
}

.edit-page h1 {
    color: #3a3270;
    margin-top: 0;
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 4px rgba(95, 85, 160, 0.15);
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-page .container>h1::before {
    content: '📝';
    font-size: 32px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.edit-page .info {
    margin-bottom: 28px;
    padding: 16px 22px;
    color: #3a3270;
    font-weight: 700;
    background: linear-gradient(145deg, #ffffff 0%, #efedf9 100%);
    border: 1px solid #c8c2dc;
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 #ffffff,
        inset 0 -1px 0 rgba(255, 255, 255, 0.5),
        0 6px 0 #b8b0d8,
        0 8px 16px rgba(95, 85, 160, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.edit-page .info::before {
    content: 'ℹ️';
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.edit-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}

.edit-page label {
    display: block;
    font-weight: 700;
    color: #3a3270;
    margin-bottom: 8px;
    text-shadow: 0 1px 0 #ffffff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.edit-page .required-star {
    color: #dc2626;
    font-weight: 800;
    margin-left: 4px;
    font-size: 16px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.edit-page .field-help {
    display: block;
    font-size: 12px;
    color: #5a5295;
    margin-top: 6px;
    padding: 7px 12px;
    background: linear-gradient(145deg, #f8f7fc, #e8e5f5);
    border-left: 3px solid #9890cc;
    border-radius: 8px;
    font-style: italic;
    line-height: 1.4;
}

.edit-page input,
.edit-page textarea,
.edit-page select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #c8c2dc;
    border-radius: 12px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #ffffff 0%, #fafaff 100%);
    box-shadow:
        inset 0 2px 4px rgba(120, 100, 180, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9),
        0 4px 0 #b0a8d0,
        0 5px 10px rgba(95, 85, 160, 0.1);
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: #2d2845;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit-page input::placeholder {
    color: #9890b8;
    font-weight: 400;
}

.edit-page input:hover,
.edit-page textarea:hover,
.edit-page select:hover {
    border-color: #9890cc;
    box-shadow:
        inset 0 2px 4px rgba(120, 100, 180, 0.15),
        0 5px 0 #b0a8d0,
        0 7px 14px rgba(95, 85, 160, 0.15);
    transform: translateY(-1px);
    background-color: transparent;
}

.edit-page input:focus,
.edit-page textarea:focus,
.edit-page select:focus {
    outline: none;
    border-color: #5a5295;
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
    box-shadow:
        inset 0 2px 4px rgba(120, 100, 180, 0.2),
        0 5px 0 #9890cc,
        0 0 0 4px rgba(122, 114, 184, 0.25),
        0 10px 22px rgba(95, 85, 160, 0.18);
    transform: translateY(-2px);
}

.edit-page .was-validated input:invalid,
.edit-page .was-validated textarea:invalid,
.edit-page .was-validated select:invalid,
.edit-page .has-error input,
.edit-page .has-error select,
.edit-page .has-error textarea {
    border-color: #dc2626;
    box-shadow:
        inset 0 2px 4px rgba(220, 38, 38, 0.15),
        0 4px 0 #ef9999,
        0 0 0 3px rgba(220, 38, 38, 0.15);
}

.edit-page .locked-afm {
    background: linear-gradient(145deg, #e9e9ef 0%, #d8d8e4 100%) !important;
    color: #444 !important;
    cursor: not-allowed !important;
    font-weight: 800 !important;
    border-color: #aaa !important;
}

.edit-page input:disabled,
.edit-page select:disabled,
.edit-page textarea:disabled {
    background: linear-gradient(145deg, #ecebf2 0%, #d8d6e5 100%);
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #b8b0d0;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.08),
        0 2px 0 #9890b8;
    transform: none;
}

.edit-page textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

.edit-page select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(145deg, #ffffff 0%, #fafaff 100%),
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%233a3270' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 16px center;
    background-size: 100% 100%, 12px 8px;
    padding-right: 40px;
    cursor: pointer;
}

.edit-page .buttons {
    margin-top: 36px;
    padding: 20px;
    background: linear-gradient(145deg, #f5f3fc, #e8e5f5);
    border-radius: 18px;
    border: 1px solid #c8c2dc;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 5px 0 #b0a8d0,
        0 8px 16px rgba(95, 85, 160, 0.15);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.edit-page button,
.edit-page .btn {
    flex: 1;
    background: linear-gradient(145deg, #ffffff 0%, #efedf9 100%);
    border: 2px solid #9890cc;
    color: #3a3270;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        0 6px 0 #5a5295,
        0 8px 16px rgba(95, 85, 160, 0.3);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    width: auto;
}

.edit-page button::before,
.edit-page .btn::before {
    display: none;
}

.edit-page button:hover,
.edit-page .btn:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 9px 0 #5a5295,
        0 14px 28px rgba(95, 85, 160, 0.4);
    background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
}

.edit-page button:active,
.edit-page .btn:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 1px 0 #5a5295,
        0 2px 6px rgba(95, 85, 160, 0.2);
    opacity: 1;
}

.edit-page .kids-row {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    padding: 22px;
    background: linear-gradient(145deg, #f8f6fd 0%, #ece9f7 100%);
    border: 2px solid #c8c2dc;
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 #ffffff,
        inset 0 -1px 0 rgba(255, 255, 255, 0.5),
        0 6px 0 #b0a8d0,
        0 10px 20px rgba(95, 85, 160, 0.15);
    position: relative;
}

.edit-page .kids-row::before {
    content: '👨‍👩‍👧‍👦';
    position: absolute;
    top: -16px;
    left: 20px;
    background: linear-gradient(145deg, #ffffff, #f5f3ff);
    padding: 0 12px;
    font-size: 24px;
    border-radius: 12px;
    box-shadow:
        0 3px 6px rgba(95, 85, 160, 0.2),
        inset 0 1px 0 #ffffff;
    border: 1px solid #c8c2dc;
}

.edit-page .kids-row h4 {
    margin: 0 0 12px 0;
    color: #3a3270;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 1px 0 #ffffff;
    padding-left: 4px;
}

.edit-page .kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.edit-page .kid-field {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #ffffff, #faf8ff);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #c8c2dc;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 3px 0 #b0a8d0,
        0 4px 8px rgba(95, 85, 160, 0.1);
}

.edit-page .kid-field label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #5a5295;
    font-weight: 700;
}

.edit-page .kid-field label::before {
    content: '🍼 ';
    color: #9890cc;
}

.edit-page .kid-field input {
    padding: 8px 10px;
    font-size: 14px;
    border-width: 1px;
    box-shadow:
        inset 0 1px 3px rgba(120, 100, 180, 0.1),
        0 2px 0 #b0a8d0;
}

@media (max-width: 900px) {
    .edit-page .kids-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body.edit-page {
        padding: 15px;
    }

    .edit-page .container {
        width: 100%;
        padding: 22px;
        border-radius: 20px;
    }

    .edit-page h1 {
        font-size: 24px;
    }

    .edit-page .form-grid {
        grid-template-columns: 1fr;
    }

    .edit-page .full,
    .edit-page .kids-row {
        grid-column: span 1;
    }

    .edit-page .buttons {
        flex-direction: column;
        gap: 12px;
    }
}