Files
sasa-membership/frontend/src/App.css
James Pattinson f1c4ff19d6 More iteration
2025-11-10 15:20:11 +00:00

312 lines
4.8 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
line-height: 1.6;
font-weight: 400;
color: #213547;
background-color: #ffffff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.card {
background: white;
border-radius: 8px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background-color: #0066cc;
color: white;
}
.btn-primary:hover {
background-color: #0052a3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #5a6268;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #0066cc;
}
.alert {
padding: 12px 16px;
border-radius: 4px;
margin-bottom: 16px;
}
.alert-success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.alert-error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.alert-warning {
background-color: #fff3cd;
color: #856404;
border: 1px solid #ffeaa7;
}
.navbar {
background-color: #0066cc;
color: white;
padding: 16px 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar h1 {
margin: 0;
font-size: 20px;
}
.navbar button {
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
}
.navbar button:hover {
background: rgba(255, 255, 255, 0.3);
}
.auth-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card {
background: white;
border-radius: 8px;
padding: 40px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 440px;
}
.auth-card h2 {
margin-bottom: 24px;
color: #213547;
text-align: center;
}
.auth-card .form-footer {
margin-top: 16px;
text-align: center;
color: #666;
}
.auth-card .form-footer a {
color: #0066cc;
text-decoration: none;
}
.auth-card .form-footer a:hover {
text-decoration: underline;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
}
.status-active {
background-color: #d4edda;
color: #155724;
}
.status-pending {
background-color: #fff3cd;
color: #856404;
}
.status-expired {
background-color: #f8d7da;
color: #721c24;
}
/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}
.modal-content {
background: white;
padding: 24px;
border-radius: 8px;
width: 100%;
max-width: 400px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-content h3 {
margin: 0 0 20px 0;
color: #333;
font-size: 18px;
font-weight: bold;
}
.modal-form-group {
margin-bottom: 16px;
}
.modal-form-group label {
display: block;
margin-bottom: 4px;
font-weight: bold;
color: #333;
font-size: 14px;
}
.modal-form-group input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
color: #333;
background-color: #fff;
}
.modal-form-group input:focus {
outline: none;
border-color: #0066cc;
}
.modal-error {
color: #dc3545;
margin-bottom: 16px;
font-size: 14px;
}
.modal-buttons {
display: flex;
gap: 8px;
justify-content: flex-end;
}
.modal-btn-cancel {
padding: 8px 16px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
cursor: pointer;
color: #333;
font-size: 14px;
}
.modal-btn-cancel:hover {
background: #f8f9fa;
}
.modal-btn-primary {
padding: 8px 16px;
border: none;
border-radius: 4px;
background: #007bff;
color: white;
cursor: pointer;
font-size: 14px;
}
.modal-btn-primary:hover:not(:disabled) {
background: #0056b3;
}
.modal-btn-primary:disabled {
background: #6c757d;
cursor: not-allowed;
}