* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #4c1d95 0%, #581c87 50%, #6b21a8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: rgba(248, 250, 252, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(10px);
}

header {
    margin-bottom: 2rem;
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.follow-btn {
    display: inline-block;
    background: #000000;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

.follow-btn::before {
    content: "𝕏 ";
    font-size: 1.1em;
    font-weight: bold;
    margin-right: 0.3em;
}

.assessment-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #4a5568;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.assess-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 1rem;
}

.assess-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.assess-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loading Bar Styles */
.loading-container {
    margin-top: 2rem;
    text-align: center;
}

.loading-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: bold;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(248, 250, 252, 1);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.result-image {
    width: 156px;
    height: 156px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    display: block;
    border: 3px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-username {
    font-size: 1.04rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.5rem;
}

.result-role {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-x-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.share-x-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

.share-x-btn::before {
    content: "𝕏";
    font-size: 1.2em;
    font-weight: bold;
}

.try-again-btn {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Footer Styles */
.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.footer-credit {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    opacity: 0.8;
}

/* Role Color Classes */
.role-newbies {
    color: #10b981 !important; /* emerald */
}

.role-full-access {
    color: #6b7280 !important; /* grey */
}

.role-nads {
    color: #601A35 !important; /* plum */
}

.role-retired-nads {
    color: #601A35 !important; /* plum */
}

.role-running-hot {
    color: #f97316 !important; /* orange */
}

.role-nad-og {
    color: #ec4899 !important; /* pink */
}

.role-mon {
    color: #8b5cf6 !important; /* purple */
}

.role-mon2 {
    color: #8b5cf6 !important; /* purple */
}

.role-tg {
    color: #3b82f6 !important; /* blue */
}

/* Dropdown option styling */
#currentRole option {
    padding: 0.5rem;
}

#currentRole option[value="newbies"] {
    color: #10b981;
}

#currentRole option[value="full-access"] {
    color: #6b7280;
}

#currentRole option[value="retired-nads"] {
    color: #663046;
}

#currentRole option[value="nads"] {
    color: #601A35;
}

#currentRole option[value="running-hot"] {
    color: #f97316;
}

#currentRole option[value="nad-og"] {
    color: #ec4899;
}

#currentRole option[value="mon"] {
    color: #8b5cf6;
}

#currentRole option[value="mon2"] {
    color: #8b5cf6;
}

#currentRole option[value="tg"] {
    color: #3b82f6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}
