frontend/style.css
/* --- Global Styles & Variables --- */
:root {
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --accent-color: #0d6efd;
    --accent-hover: #0b5ed7;
    --danger-color: #dc3545;
    --danger-hover: #bb2d3b;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding: 2rem 1rem;
}

.container, .auth-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    max-width: 450px;
}

/* --- Card & Layout --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: opacity 0.2s ease-in-out;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- Typography --- */
h1 { font-size: 2.25rem; font-weight: 700; margin: 0; }
h2 { font-size: 1.75rem; margin-top: 0; margin-bottom: 1.5rem; }
h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    background-color: #f1f3f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 85%;
    color: #d6336c;
    word-break: break-all;
}

/* --- Forms & Buttons --- */
form { display: flex; flex-direction: column; gap: 1rem; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

input:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

button, .button-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 1px solid transparent;
}

button {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
button:hover { background-color: var(--accent-hover); }

.button-secondary {
    background-color: var(--card-bg);
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.button-secondary:hover { background-color: #eef; }


button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    border-color: #6c757d;
}

#logout-button { background-color: var(--danger-color); border-color: var(--danger-color); }
#logout-button:hover { background-color: var(--danger-hover); border-color: var(--danger-hover); }

.error-message { color: var(--danger-color); margin-top: 1rem; }
.toggle-text { text-align: center; margin-top: 1rem; color: var(--text-secondary); }
.toggle-text a { color: var(--accent-color); text-decoration: none; }
.toggle-text a:hover { text-decoration: underline; }

/* --- Lists --- */
ul { list-style: none; padding: 0; }

#projects-list li, #history-list li, #issues-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}
#projects-list li:last-child, #history-list li:last-child, #issues-list li:last-child { border-bottom: none; }

.project-info span, .issue-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.project-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: center; }
.user-info { display: flex; align-items: center; gap: 1rem; }

/* --- Suggestion Card Improvements --- */
#suggestions-card ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}
#suggestions-card li {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.text-preview {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* --- Delete Button & Modal Styles --- */
.delete-project-button, .delete-scan-button {
    background-color: transparent;
    border: none;
    color: var(--danger-color);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.delete-project-button:hover, .delete-scan-button:hover {
    background-color: #fcebeb;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    border-bottom: none;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.delete-button {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}
.delete-button:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}