/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #1976d2 !important;
    font-size: 1.8rem;
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Text Display Area */
.text-display {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    padding: 1.5rem;
    min-height: 150px;
    border: none;
}

#textToType {
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Character highlighting */
.current-char {
    background-color: #bbdefb;
    border-radius: 3px;
    animation: pulse 1s infinite;
}

.correct-char {
    color: #4caf50;
}

.incorrect-char {
    color: #f44336;
    text-decoration: underline;
}

@keyframes pulse {
    0% { background-color: #bbdefb; }
    50% { background-color: #90caf9; }
    100% { background-color: #bbdefb; }
}

/* Typing Input */
#typingInput {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
    padding: 1rem;
}

#typingInput:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
    outline: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-outline-primary {
    border-color: #2196f3;
    color: #2196f3;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
}

/* Social Icons */
.social-icons a {
    font-size: 1.4rem;
    color: #6c757d;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    #textToType {
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
