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

/* Global Styles and Body Background */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Light, soft background */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: #5d9cec; /* Primary blue color */
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.counter-number {
    background-color: #4a7bb3; /* Darker shade for contrast */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.views-label {
    margin-right: 5px;
}

/* Main Content and Layout */
.container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle, deeper shadow */
    max-width: 400px;
    width: 100%;
    text-align: center;
}

h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Form Styling */
#greeting-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Include padding in element's total width/height */
}

input[type="text"]:focus {
    border-color: #5d9cec;
    outline: none;
    box-shadow: 0 0 5px rgba(93, 156, 236, 0.5);
}

/* Button Styling */
#submit-btn {
    padding: 10px 15px;
    background-color: #5d9cec;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#submit-btn:hover {
    background-color: #4a7bb3;
    transform: translateY(-1px);
}

#submit-btn:active {
    background-color: #3b6088;
    transform: translateY(0);
}

/* Greeting Message Area */
.message-area {
    margin-top: 25px;
    min-height: 24px; /* Maintain height to prevent layout shift */
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745; /* Green color for success/greeting */
}

/* Footer Styling */
footer {
    padding: 10px;
    text-align: center;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
}