/* frontend/style.css */
/* flashmvp Global Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                 sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* --- Login Page --- */
.login-container {
    max-width: 400px;
    margin: 10vh auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #222;
}

.login-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.login-container input:focus {
    outline: none;
    border-color: #007bff;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-container button:hover {
    background: #0056b3;
}

.login-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

/* --- Dashboard & General Layout --- */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 28px;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1; /* Makes p take available space */
}

.feature-link {
    display: inline-block;
    padding: 10px 22px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
    align-self: flex-start; /* Aligns button to the left */
}

.feature-link:hover {
    background: #218838;
}

/* --- Feature Page Specifics --- */
.feature-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-container textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    min-height: 120px;
}

.feature-container button {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.result-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

footer {
    margin-top: 40px;
    text-align: center;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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