:root {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #111;
    background-color: #f8f9fb;
}

body {
    margin: 0;
    background-color: #f8f9fb;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: #222;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.app-header nav a {
    color: #9ad5ff;
    margin-right: 1.25rem;
    text-decoration: none;
}

.app-header nav a:last-child {
    margin-right: 0;
}

.app-body {
    flex: 1;
    padding: 2rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.panel h2 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
}

button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}

button:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.status-success {
    color: #047857;
}

.status-error {
    color: #b91c1c;
}

.projects-grid {
    display: grid;
    gap: 1rem;
}

.project-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
}

.project-card .no-projects {
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0;
}

.alert-warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Welcome/Login Page Styles */
.welcome-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 0;
}

.welcome-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.login-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #4b5563;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.btn-primary {
    background-color: #374151;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin-top: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    background-color: #4b5563;
}

.btn-primary:active:not(:disabled) {
    background-color: #1f2937;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.validation-summary {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #991b1b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.status-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.status-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-message.status-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.success-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.success-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.success-content {
    flex: 1;
}

.success-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.success-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.success-text strong {
    color: #374151;
    font-weight: 600;
}

.btn-success {
    background-color: #374151;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
    width: 100%;
    text-align: center;
}

.btn-success:hover {
    background-color: #4b5563;
}

.btn-success:active {
    background-color: #1f2937;
}

