.input-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-section h2 {
    color: #333;
    margin-bottom: 15px;
}

.input-section p {
    color: #666;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 15px;
}

#tweetUrl {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#tweetUrl:focus {
    outline: none;
    border-color: #667eea;
}

#fetchTweet {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

#fetchTweet:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.tweet-preview {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tweet-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background-color: #e1e8ed;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    font-size: 15px;
    color: #0f1419;
}

.user-handle {
    font-size: 15px;
    color: #536471;
}

.twitter-logo {
    position: absolute;
    right: 0;
    top: 0;
}

.tweet-content {
    font-size: 15px;
    line-height: 20px;
    color: #0f1419;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tweet-video-container {
    margin: 15px 0;
}

.tweet-stats {
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    color: #536471;
    font-size: 14px;
}

.tweet-metrics {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.controls {
    margin-top: 30px;
    text-align: center;
}

.btn-primary, .btn-danger, .btn-success {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-primary:hover, .btn-danger:hover, .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.recording-status {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.recording-active {
    color: #e53e3e;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.donation-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e1e8ed;
}

.donation-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.donation-section p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.donation-form {
    display: flex;
    justify-content: center;
}

.donation-form form {
    transition: transform 0.3s ease;
}

.donation-form form:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .tweet-container {
        padding: 15px;
    }
    
    .controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-danger, .btn-success {
        margin: 5px 0;
        width: 100%;
    }
}