* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c1a2d 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 2px solid #ff9900;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #ff9900;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.fruits-section, .login-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.8rem;
    color: #ff9900;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
}

.fruits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.fruit-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.fruit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.2);
}

.fruit-card.selected {
    border-color: #ff9900;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

.fruit-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.fruit-name {
    padding: 10px 5px;
    font-weight: bold;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
}

.selected-fruits {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    min-height: 100px;
}

.selected-title {
    color: #ff9900;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-item {
    background: rgba(255, 153, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-fruit {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.no-selection {
    color: #aaa;
    font-style: italic;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    color: #ddd;
}

input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

.btn {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(to right, #ff9900, #ff6600);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #ff6600, #ff3300);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 153, 0, 0.3);
    text-align: center;
}

.modal-title {
    font-size: 1.8rem;
    color: #ff9900;
    margin-bottom: 20px;
}

.modal-message {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #ddd;
}

.countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #ff9900;
    margin: 20px 0;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff9900, #ff6600);
    width: 0%;
    transition: width 0.3s ease;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.status-success {
    background: rgba(0, 200, 0, 0.2);
    border: 1px solid rgba(0, 200, 0, 0.5);
    display: block;
}

.status-error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    display: block;
}

.instructions {
    background: rgba(255, 153, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #ff9900;
}

.instructions h3 {
    color: #ff9900;
    margin-bottom: 10px;
}

.instructions ol {
    padding-left: 20px;
    line-height: 1.6;
}

.instructions li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 30px 0 20px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}