@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Orbitron', monospace;
   min-height: 100vh;
   background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
   background-size: 400% 400%;
   animation: gradientShift 15s ease infinite;
   color: #ffffff;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   position: relative;
}

@keyframes gradientShift {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
}

/* 배경 파티클 효과 */
.particles {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
   z-index: 1;
}

.particle {
   position: absolute;
   width: 2px;
   height: 2px;
   background: #00ff88;
   border-radius: 50%;
   animation: float 6s infinite linear;
   opacity: 0.7;
}

@keyframes float {
   0% {
       transform: translateY(100vh) rotate(0deg);
       opacity: 0;
   }
   10% {
       opacity: 1;
   }
   90% {
       opacity: 1;
   }
   100% {
       transform: translateY(-100px) rotate(360deg);
       opacity: 0;
   }
}

.container {
   position: relative;
   z-index: 10;
   width: 100%;
   max-width: 450px;
   text-align: center;
   padding: 35px;
   background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
   backdrop-filter: blur(20px);
   border: 1px solid rgba(0, 255, 136, 0.3);
   border-radius: 25px;
   box-shadow: 
       0 25px 45px rgba(0, 0, 0, 0.2),
       0 0 50px rgba(0, 255, 136, 0.15),
       inset 0 1px 0 rgba(255, 255, 255, 0.1);
   animation: containerPulse 3s ease-in-out infinite alternate;
}

@keyframes containerPulse {
   from {
       box-shadow: 
           0 25px 45px rgba(0, 0, 0, 0.2),
           0 0 50px rgba(0, 255, 136, 0.15),
           inset 0 1px 0 rgba(255, 255, 255, 0.1);
   }
   to {
       box-shadow: 
           0 25px 45px rgba(0, 0, 0, 0.3),
           0 0 80px rgba(0, 255, 136, 0.25),
           inset 0 1px 0 rgba(255, 255, 255, 0.2);
   }
}

h1 {
   margin-bottom: 25px;
   font-size: clamp(1.8rem, 4vw, 2.2rem);
   font-weight: 900;
   color: #00ff88;
   text-shadow: 
       0 0 5px #00ff88,
       0 0 10px #00ff88,
       0 0 20px #00ff88,
       0 0 40px #00ff88;
   animation: titlePulse 2s ease-in-out infinite alternate;
   letter-spacing: 2px;
}

@keyframes titlePulse {
   from {
       text-shadow: 
           0 0 5px #00ff88,
           0 0 10px #00ff88,
           0 0 20px #00ff88,
           0 0 40px #00ff88;
   }
   to {
       text-shadow: 
           0 0 10px #00ff88,
           0 0 20px #00ff88,
           0 0 30px #00ff88,
           0 0 60px #00ff88;
   }
}

.input-group {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 15px;
}

input[type="number"] {
   padding: 16px 20px;
   width: 100%;
   border: 1px solid rgba(0, 255, 136, 0.3);
   border-radius: 15px;
   background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
   backdrop-filter: blur(10px);
   color: #ffffff;
   font-size: 1rem;
   font-weight: 400;
   transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   outline: none;
}

input[type="number"]::placeholder {
   color: rgba(255, 255, 255, 0.6);
}

input[type="number"]:focus {
   border-color: #00ff88;
   box-shadow: 
       0 0 20px rgba(0, 255, 136, 0.3),
       inset 0 1px 0 rgba(255, 255, 255, 0.1);
   transform: translateY(-2px);
}

button {
   padding: 18px 25px;
   background: linear-gradient(145deg, #00ff88, #00cc6a);
   color: #000000;
   border: none;
   border-radius: 15px;
   cursor: pointer;
   font-size: 1.1rem;
   font-weight: 700;
   width: 100%;
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   position: relative;
   overflow: hidden;
   text-transform: uppercase;
   letter-spacing: 1px;
   box-shadow: 
       0 8px 25px rgba(0, 255, 136, 0.3),
       inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: left 0.5s;
}

button:hover {
   transform: translateY(-3px) scale(1.02);
   box-shadow: 
       0 15px 35px rgba(0, 255, 136, 0.4),
       inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

button:active {
   transform: translateY(-1px) scale(1.01);
}

table {
   margin-top: 30px;
   border-collapse: separate;
   border-spacing: 0;
   width: 100%;
   background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
   backdrop-filter: blur(10px);
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 
       0 15px 35px rgba(0, 0, 0, 0.1),
       inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

th, td {
   padding: 15px 12px;
   text-align: center;
   border: none;
}

th {
   background: linear-gradient(145deg, #00ff88, #00cc6a);
   color: #000000;
   font-weight: 700;
   font-size: 0.95rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   text-shadow: none;
   position: relative;
}

th::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 2px;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

tbody tr {
   transition: all 0.3s ease;
   border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

tbody tr:last-child {
   border-bottom: none;
}

tbody tr:hover {
   background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
   transform: translateX(5px);
   box-shadow: 
       5px 0 15px rgba(0, 255, 136, 0.2),
       inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

tbody td {
   color: #ffffff;
   font-weight: 400;
   position: relative;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
   body {
       padding: 20px;
       align-items: flex-start;
       overflow-y: auto;
   }
   
   .container {
       max-width: 100%;
       padding: 25px 20px;
       margin-top: 20px;
       margin-bottom: 20px;
   }
   
   h1 {
       font-size: 1.6rem;
       margin-bottom: 20px;
       letter-spacing: 1px;
   }
   
   input[type="number"] {
       padding: 14px 16px;
       font-size: 0.95rem;
   }
   
   button {
       padding: 15px 20px;
       font-size: 1rem;
   }
   
   th, td {
       padding: 12px 8px;
       font-size: 0.9rem;
   }
}

/* 추가 애니메이션 효과 */
.container {
   animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
   from {
       opacity: 0;
       transform: translateY(50px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

input[type="number"], button {
   animation: fadeIn 0.6s ease-out;
   animation-fill-mode: both;
}

input[type="number"]:nth-child(1) { animation-delay: 0.1s; }
input[type="number"]:nth-child(2) { animation-delay: 0.2s; }
input[type="number"]:nth-child(3) { animation-delay: 0.3s; }
button { animation-delay: 0.4s; }

@keyframes fadeIn {
   from {
       opacity: 0;
       transform: translateY(20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

table {
   animation: tableSlide 0.8s ease-out 0.5s both;
}

@keyframes tableSlide {
   from {
       opacity: 0;
       transform: translateY(30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}
