/* =========================================================================
   File: /app_charts/assets/app.css
   Author: Marcin Kalisiak
   Created: 19.12.2025
   All rights reserved
   ========================================================================= */

   :root{
    --ink: #1f2d3a;
    --ink-soft: #2c3f52;
  
    --card-bg: rgba(255,255,255,0.84);
    --card-border: rgba(255,255,255,0.35);
  
    --primary: #2f6fa6;
    --primary-2: #3a86c6;
  
    --secondary: #6e7f90;
    --secondary-2:#8a97a6;
  
    --shadow: 0 10px 26px rgba(0,0,0,0.18);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.14);
  
    --radius: 16px;
    --radius-sm: 12px;
  }
  
  *{ box-sizing: border-box; }
  html,body{ height:100%; }
  
  body{
    margin:0;
    padding:0;
    font-family: Arial, sans-serif;
    color: var(--ink);
  
    background-color: #eaf2f9;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  
    display:flex;
    flex-direction:column;
    min-height:100vh;
  }
  
  main{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 22px;
  }
  
  #language-switcher{
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1000;
    display:flex;
    gap:8px;
  }
  
  .lang-flag{
    width: 32px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    background:#fff;
  
    border:1px solid rgba(0,0,0,0.18);
    opacity:0.65;
    cursor:pointer;
    transition: opacity .15s ease, transform .15s ease, border .15s ease;
  }
  .lang-flag:hover{ opacity:0.88; transform: scale(1.03); }
  .lang-flag.is-active{
    opacity:1;
    border:2px solid var(--primary);
    transform: scale(1.06);
    cursor:default;
  }
  
  #navigation-menu{
    width:100%;
    max-width: 760px;
    padding: 30px 40px;
  
    background: var(--card-bg);
    background-color: rgba(236, 244, 251, 0.50); /* jasny niebiesko-szary */
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
  
    display:flex;
    flex-direction:column;
    gap: 16px;
    text-align:center;
  }
  
  h1{
    margin:0 0 6px 0;
    color: var(--ink-soft);
    font-size: 1.65em;
    line-height: 1.25;
  }
  
  .btn{
    width:100%;
    display:inline-block;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05);
  
    text-decoration:none;
    cursor:pointer;
  
    font-weight:700;
    font-size: 1.02em;
    line-height: 1.35;
    text-align:center;
  
    color:#fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow-soft);
  
    transition: transform .08s ease-out, box-shadow .12s ease-out, filter .12s ease-out;
  }
  .btn:hover{ transform: translateY(-1px); filter: brightness(1.02); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
  .btn:active{ transform: translateY(1px); box-shadow: 0 5px 14px rgba(0,0,0,0.14); }
  
  .btn.secondary{
    background: linear-gradient(135deg, var(--secondary), var(--secondary-2));
  }
  
  .footer{
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    text-align:center;
    padding: 18px 14px;
  }
  
  .footer .about-btn{
    margin-top: 12px;
    width:auto;
    min-width: 220px;
    display:inline-block;
  }
  
  @keyframes fadeInUp{
    from{ opacity:0; transform: translateY(8px); }
    to{ opacity:1; transform: translateY(0); }
  }
  .fade-in{ animation: fadeInUp .22s ease-out; }
  
  @media (max-width: 640px){
    main{ padding: 16px; }
    #navigation-menu{ padding: 22px 16px; border-radius: 14px; }
    h1{ font-size: 1.45em; }
    .btn{ font-size: 1em; padding: 13px 14px; border-radius: 12px; }
    #language-switcher{ top: 10px; right: 12px; }
  }

  /* =========================
   Program modal (About)
   ========================= */
   
  .program-modal-overlay{
    display:none;
    position:fixed;
    z-index:9999;
    left:0; top:0;
    width:100%;
    height:100%;
    overflow:auto;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
  }

  .program-modal{
    background: #ffffff;
    margin: 3vh auto;
    padding: 26px;
    width: 92%;
    max-width: 920px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.30);
    border: 1px solid rgba(0,0,0,0.12);

    max-height: 92vh;
    overflow-y: auto;

    color: var(--ink);
    line-height: 1.6;
  }

  .program-modal__close{
    position: sticky;
    top: 0;
    float: right;
    margin-top: -6px;
    margin-right: -2px;

    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.85);
    cursor: pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size: 26px;
    line-height: 1;
    color: rgba(31,45,58,0.65);
    transition: transform .08s ease-out, color .12s ease-out, background .12s ease-out;
  }

  .program-modal__close:hover{
    color: rgba(31,45,58,0.95);
    transform: scale(1.02);
    background: #fff;
  }

  .program-modal h2{
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.10);
    color: var(--primary);
  }

  .program-modal h3{
    margin: 22px 0 10px 0;
    color: var(--primary);
  }

  .program-modal h4{
    margin: 0 0 10px 0;
    color: var(--ink-soft);
  }

  .program-section{
    background: rgba(47,111,166,0.06);
    border: 1px solid rgba(47,111,166,0.12);
    padding: 14px 14px;
    border-radius: 12px;
    margin: 12px 0 16px 0;
  }

  .program-section--preterm h4{ color: #2b5f8a; }
  .program-section--term h4{ color: #2b7a66; }

  .program-modal ul{
    padding-left: 22px;
    margin: 10px 0 16px 0;
  }

  .program-modal .muted{
    color: rgba(31,45,58,0.75);
  }

  .program-modal .contact a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
  }
  .program-modal .contact a:hover{
    text-decoration: underline;
  }
