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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

header {
    text-align: center;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

textarea {
    width: 100%;
    padding: 20px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #ffffff;
    resize: vertical;
    min-height: 200px;
    transition: all 0.2s ease;
}

textarea::placeholder {
    color: #4a4a4a;
}

textarea:focus {
    outline: none;
    border-color: #3a3a3a;
    background: #1a1a1a;
}

.detect-button {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.detect-button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.detect-button:active {
    transform: translateY(0);
}

.detect-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loader {
    border: 2px solid #3a3a3a;
    border-top: 2px solid #0a0a0a;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    padding: 20px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-icon {
    font-size: 24px;
}

.result.spam {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.result.not-spam {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

footer p {
    font-size: 0.85rem;
    color: #4a4a4a;
    font-weight: 500;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    textarea {
        min-height: 160px;
    }
}
