:root {
    --bg-color: #F39C12;
    --card-bg: #ffffff;
    --text-color: #2D3436;
    --accent-color: #D35400;
    --accent-hover: #E67E22;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vh;
    height: 50vh;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin: 0;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 500;
}

.upload-area {
    background-color: rgba(255, 255, 255, 0.15);
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-area:hover,
.upload-area.dragover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.upload-area p {
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.link-box {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

input[type="text"],
input[type="password"] {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid #dfe6e9;
    background-color: #f5f6fa;
    color: #2d3436;
    font-family: monospace;
    font-weight: 600;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
}

.progress-container {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.2s;
}

.result-area {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.result-area h2 {
    color: white;
    margin-top: 0;
}

.result-area p {
    color: white;
}

.expiry-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.or {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.password-section {
    margin: 2rem 0;
}

.password-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
}

.password-input-group input {
    flex: 1;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.password-input-group button {
    width: auto;
    padding: 0.75rem 1rem;
    background-color: white;
    color: var(--accent-color);
}

.password-input-group button:hover {
    background-color: #f0f0f0;
}

#downloadMode {
    text-align: center;
}

#downloadMode h2 {
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-info {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.file-info p {
    margin: 0.5rem 0;
}

.error-message {
    margin-top: 1rem;
    min-height: 1.5rem;
    color: white;
    font-weight: bold;
}

.error {
    display: block;
    background: rgba(211, 84, 0, 0.9);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.security-badge {
    font-size: 0.875rem;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
}

.security-badge:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #2d3436;
}

.close {
    color: #b2bec3;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

input[type="password"] {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid #dfe6e9;
    background-color: #f5f6fa;
    color: #2d3436;
    font-family: monospace;
    font-weight: 600;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
}

.progress-container {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.2s;
}

.result-area {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.result-area h2 {
    color: white;
    margin-top: 0;
}

.result-area p {
    color: white;
}

.expiry-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.or {
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.password-section {
    margin: 2rem 0;
}

.password-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
}

.password-input-group input {
    flex: 1;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.password-input-group button {
    width: auto;
    padding: 0.75rem 1rem;
    background-color: white;
    color: var(--accent-color);
}

.password-input-group button:hover {
    background-color: #f0f0f0;
}

#downloadMode {
    text-align: center;
}

#downloadMode h2 {
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-info {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.file-info p {
    margin: 0.5rem 0;
}

.error-message {
    margin-top: 1rem;
    min-height: 1.5rem;
    color: white;
    font-weight: bold;
}

.error {
    display: block;
    background: rgba(211, 84, 0, 0.9);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.security-badge {
    font-size: 0.875rem;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
}

.security-badge:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    color: #2d3436;
}

.close {
    color: #b2bec3;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.modal-content ul {
    text-align: left;
    line-height: 1.8;
}

.modal-content ul li {
    margin-bottom: 0.75rem;
}

/* SVG Icons */
svg {
    vertical-align: middle;
    display: inline-block;
}

.icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

h2 svg {
    margin-right: 0.5rem;
    vertical-align: text-bottom;
}

.security-badge svg {
    margin-right: 4px;
    vertical-align: text-top;
}

label svg {
    margin-right: 6px;
    vertical-align: text-bottom;
}

.expiry-note svg {
    margin-right: 4px;
    vertical-align: text-top;
}

/* Fruit background */
.fruit-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.fruit-image {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}