/* Font import -------------------------------------------- */
@font-face {
  font-family: CallingCode;
  src: url(/media/fonts/CallingCode-Regular.woff);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
    background: #161a2d; 
	  width: 100%;
    height: 100%;
    overflow: hidden;
}


/* Language mechanism -------------------------------------------- */
/* This hides text as selected by the switcher ------------------- */
.eng { display: block; }
.cz { display: none; }

body.lang-cz .eng { display: none; }
body.lang-cz .cz  { display: block; }

/* Language switch -------------------------------------------- */

.lang-switch {
    position: fixed;
    z-index: 10;
    bottom: 40px;
    right: 45px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 32px;
    cursor: pointer;
}

/* Sliding white knob */
.slider::before {
    content: "EN";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 2px;
    top: 2px;

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

    background: white;
    color: #333;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    transition: 0.4s;
    z-index: 2;
}

/* Unselected CZ */
.slider::after {
    content: "CZ";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    color: white;
    font-size: 10px;
    font-weight: 700;

    z-index: 1;
}

/* CZ selected */
.switch input:checked + .slider {
    background: #00a1ff;
}

.switch input:checked + .slider::before {
    content: "CZ";
    transform: translateX(32px);
}

/* Unselected EN */
.switch input:checked + .slider::after {
    content: "EN";
    left: 8px;
    right: auto;
}



/* Sidebar mechanism -------------------------------------------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 85px;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  background: #161a2d;
  padding: 25px 20px;
  transition: all 0.4s ease;
}

.sidebar:hover {
  width: 260px;
}

.sidebar .sidebar-header {
  display: flex;
  align-items: center;
}

.sidebar .sidebar-header img {
  width: 42px;
  border-radius: 50%;
}

.sidebar .sidebar-header h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 23px;
}

.sidebar-links h4 {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  margin: 10px 0;
  position: relative;
}

.sidebar-links h4 span {
  opacity: 0;
}

.sidebar:hover .sidebar-links h4 span {
  opacity: 1;
}

.sidebar-links .menu-separator {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: scaleX(1);
  transform: translateY(-50%);
  background: #4f52ba;
  transform-origin: right;
  transition-delay: 0.2s;
}

.sidebar:hover .sidebar-links .menu-separator {
  transition-delay: 0s;
  transform: scaleX(0);
}

.sidebar-links {
  list-style: none;
  margin-top: 20px;
  height: 80%;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-links::-webkit-scrollbar {
  display: none;
}

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 0 20px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  padding: 15px 10px;
  text-decoration: none;
  transition: 0.2s ease;
}

.sidebar-links li a:hover {
  color: #161a2d;
  background: #fff;
  border-radius: 4px;
}





/* HEADER CONTAINER */

.container-90 {
    position: fixed;
    top: 6px;
    left: 135px;
    right: 18px;
    bottom: 18px;

    display: flex;
    flex-direction: column;
    gap: 10špx;
}

/* HEADER PANEL */

.header-panel {
    position: relative;
    width: 100%;
    min-height: 2%;
    padding: 12px 0px;
    background-color: #161a2d;
    color: white;
    display: flex;
    align-items: center;
}

.header-panel::before,

.header-panel::after {
    content: "";
    position: absolute;
    left: -50px;
    width: 100px;
    height: 100%;
    background: #161a2d;   /* MUST match body background */
    z-index: -1;
}

/* header text positioning */

.header-cell {
    display: flex;
    align-items: center;
    padding-left: 30px;
    position: relative;
    z-index: 3;
}


/* Heder styling */

.header-cell h1 {
    font-family: CallingCode;
    font-size: 2.8rem;
    font-weight: normal;
}

/*content panel box */

.content-panel {
    flex: 1;
    margin-right: 1%;
    margin-bottom: 1%;

    background: #f3f3f3;
    border-radius: 24px;
    box-shadow: 6px 6px 12px rgba(0,0,0,.8);
    padding: 25px;
}

/* Sliding animations */

.header-panel,
.content-panel {
    transition: margin-left .4s ease;
}

.sidebar:hover ~ .container-90 .header-panel,
.sidebar:hover ~ .container-90 .content-panel {
    margin-left: 165px;
}



/* Cards -------------------------------------------- */

.Cards-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, 270px);
    gap: 20px;
}

.Card-body {
    padding: 10px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f2f4f7);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border: 1px solid #e6e8ec;
}

.Card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.Card-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.Card-text h3 {
    margin: 0;
    font-size: 16px;
}

.Card-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #555;
}

.Card-button {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
}