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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 40px 30px;
}

.input-section {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.05em;
}

input[type="password"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

small a {
    color: #667eea;
    text-decoration: none;
}

small a:hover {
    text-decoration: underline;
}

.analyze-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.analyze-btn:active {
    transform: translateY(0);
}

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

.result {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.result h3 {
    margin-bottom: 15px;
    color: #333;
}

.llm-response {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.sentiment {
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 15px;
}

.sentiment.positive {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.sentiment.negative {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.token-info {
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666;
}

.error {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.loading {
    margin-top: 20px;
    padding: 15px;
    background: #d1ecf1;
    color: #0c5460;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
        text-align: center;
    }

    header {
        padding: 30px 20px;
    }

    main {
        padding: 30px 20px;
    }

    .container {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
        text-align: center;
    }

    header p {
        font-size: 1em;
    }

    main {
        padding: 20px 15px;
    }
}
