/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- General Styling & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #10101a;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Prevents scrollbars from the aurora */
    position: relative;
}

/* --- Aurora Background Effect --- */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-aurora::before,
.background-aurora::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.background-aurora::before {
    background: radial-gradient(circle, #5a00a1, transparent 60%);
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    animation: moveAurora1 15s infinite alternate;
}

.background-aurora::after {
    background: radial-gradient(circle, #0077b6, transparent 60%);
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation: moveAurora2 12s infinite alternate;
}

@keyframes moveAurora1 {
    to { transform: translate(100px, 150px); }
}
@keyframes moveAurora2 {
    to { transform: translate(-150px, -100px); }
}

/* --- Glassmorphism Container --- */
.container {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
}

/* --- Header Section --- */
.header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.header p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 25px;
}

/* --- Form Controls & Inputs --- */
.form-controls {
    text-align: left;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 300;
    margin-bottom: 5px;
    color: #ccc;
}

input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #00aaff;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: none;
    background-color: #8e44ad;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}

/* --- Output Section --- */
.output-section {
    margin-top: 20px;
}

.progress-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 12px;
    width: 0%;
    background: linear-gradient(90deg, #8e44ad, #3498db);
    border-radius: 20px;
}

.log-box {
    margin-top: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    font-size: 0.8rem;
    text-align: left;
    color: #ccc;
}

/* --- Scrollbar Styling --- */
.log-box::-webkit-scrollbar {
  width: 6px;
}
.log-box::-webkit-scrollbar-track {
  background: transparent;
}
.log-box::-webkit-scrollbar-thumb {
  background-color: rgba(142, 68, 173, 0.5);
  border-radius: 20px;
}

.log-item {
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.log-item:last-child {
    border-bottom: none;
}