body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    margin-bottom: 30px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.4);
}

.card-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.card-header p {
    margin: 5px 0 0;
    color: #888;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #8e2de2;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #8e2de2;
    box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.1);
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown input {
    padding-right: 40px;
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e2de2;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.searchable-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9ff;
    color: #8e2de2;
}

.dropdown-item.highlighted {
    background-color: #8e2de2;
    color: white;
}

.dropdown-item.no-results {
    color: #888;
    font-style: italic;
    cursor: default;
}

.dropdown-item.no-results:hover {
    background-color: transparent;
    color: #888;
}

/* Custom scrollbar for dropdown */
.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #8e2de2;
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #7a26d1;
}

button {
    width: 100%;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 0, 224, 0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#result {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
    animation: slideIn 0.5s ease-in-out;
}

.result-success {
    background: #e9f7ef;
    border: 1px solid #b8e9d1;
    color: #1e8e5b;
}

.result-error {
    background: #fdecea;
    border: 1px solid #f8c0b3;
    color: #d93025;
}

.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner animation */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .card {
        padding: 20px 25px;
        margin: 10px;
    }
    
    .dropdown-list {
        max-height: 150px;
    }
}

