:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --positive-color: #10b981;
    --negative-color: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-container {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    animation: fadeIn 0.3s ease-out;
}

.sentiment-box {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
}

.positive {
    background-color: #d1fae5;
    color: #065f46;
}

.negative {
    background-color: #fee2e2;
    color: #991b1b;
}

.confidence {
    color: var(--text-secondary);
    font-size: 14px;
}

.error-message {
    margin-top: 20px;
    color: var(--negative-color);
    font-size: 14px;
}

.hidden {
    display: none;
}

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

/* Social Links */
.social-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.social-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.github {
    background-color: #24292e;
}

.social-btn.github:hover {
    background-color: #2f363d;
}

.social-btn.twitter {
    background-color: #000000; /* X brand color */
}

.social-btn.twitter:hover {
    background-color: #333333;
}

.footer-credit {
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 14px;
    color: white;
    font-weight: 600;
    background-color: black;
    padding: 10px 15px;
    border-radius: 0 15px 0 0;
    z-index: 1000;
}
