body {
    background: linear-gradient(135deg, #003c32, #005b50, #00796b);
    background-size: 300% 300%;
    animation: gradientMove 20s ease infinite;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
    color: white;
}

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

.navbar {
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.25) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .navbar-brand,
.navbar span {
    color: white !important;
}

.card-custom {
    background: rgba(15, 29, 26, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    border: 1px solid rgba(31, 170, 138, 0.4);
    padding: 22px;
    color: white;
    transition: 0.25s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
    border-color: #29e0b4;
}

.form-control {
    border-radius: 10px;
    background: #0d1917;
    border: 2px solid #14433b;
    color: white;
    padding: 12px;
    transition: 0.25s;
}

.form-control:focus {
    border-color: #1faa8a;
    box-shadow: 0 0 8px rgba(31, 170, 138, 0.6);
    background: #112522;
    color: white;
}

.btn-success,
.btn-primary {
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.25s ease;
    border: none;
}

.btn-success {
    background: linear-gradient(90deg, #009983, #00b894);
}

.btn-success:hover {
    background: linear-gradient(90deg, #00b894, #00d6a6);
    transform: scale(1.03);
}

.btn-primary {
    background: linear-gradient(90deg, #007bff, #0d6efd);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0d6efd, #4fa3ff);
    transform: scale(1.03);
}

.result-card {
    background: rgba(15, 29, 26, 0.92);
    border-radius: 18px;
    border-left: 6px solid #1faa8a;
    padding: 25px;
    color: white;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

h1 {
    text-shadow: 0 0 6px rgba(255,255,255,0.25);
}

p {
    font-size: 15px;
    opacity: 0.9;
}

footer {
    opacity: 0.7;
    padding-bottom: 20px;
    font-size: 14px;
}

.preview-photo {
    max-width: 480px;
    border-radius: 18px;
    border: 4px solid #1faa8a;
    box-shadow: 0 10px 35px rgba(0,0,0,0.45);
    background: #0d1917;
    padding: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 45px rgba(0,0,0,0.6);
}

#previewImage {
    display: none;
}

#previewContainer {
    display: none;
    text-align: center;
}


#previewContainer img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}