/*
Theme Name: Sydney child
Description: Stilovi za QR kod generator u sidebaru- uključuje layout, hover efekte i responzivnost.
Author: Altaj
Version: 1.1
File: sidebar-qr-kod.css
Purpose: Stilizacija QR alata s naglaskom na jasnoću, eleganciju iemocionalnu rezonancu.
*/
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 2rem;
}

/* Glavni weapper koji sadrži QR kod */
.qr-wrapper {
  .qr-wrapper {
  max-width: 320px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: #f4f0ec;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #4a3f3f;
}

input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* Canvas kontejner */
 #qr-code {
  width: 220px;
  height: 220px;
  margin: 1rem auto;
  background-color: #fff;
  border: 2px solid #4a3f3f;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

#qr-code canvas {
 width: 200px;
 heiht: 200px; 
 text-align: center;
 border-radius: 12px;
 box shadow: 0 4px 12px rgba(101, 5, 5, 0.2);
 display: block;
 margin-top: 8px;
 margin: 0 auto;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background-color: #CBAF87;
  color: #6E4F3A;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: transfotm 0.2s ease, box-shadow0.2s ease;
}

button:hover {
  background-color: #F9F6F2;
  transform:  scale(1.05);
  box-shadow: 0 4px 12px rgba(101, 5,5, 0.3);
}

buton-upload-logo:hover {
    box-shadow: 0 0 8px rgba (0,123, 255, 0.4);
    background-color: #f0f8ff;
}

buton.upload-logo:active::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframesripple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

.required {
   color: #8a0707;
   font-size: 1rem;
   margin-left: 4px;
 }
 
 @media (max-width: 480px) {
 #qr-code {
  width: 180;
  max-width: 180px;
  height: auto;
 }
 
 .qr-wrapper {
 padding: 1rem;
 owerflow-x: hidden;
 }
}