/* Odd Fellow Greeting System - Main Stylesheet */
/* Custom properties (CSS variables) */
:root {
    --odd-fellow-blue: #0066cc;
    --odd-fellow-gold: #d4af37;
    --primary-color: #C71585;
    --primary-hover: #A0136B;
    --success-bg: #d4edda;
    --success-text: #155724;
    --success-border: #c3e6cb;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --error-border: #f5c6cb;
    --border-color: #ddd;
    --text-color: #333;
    --text-muted: #666;
    --bg-light: #f5f5f5;
    --bg-panel: #e9ecef;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--odd-fellow-blue), #004499) !important;
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    padding: 2rem 0;
    background: var(--bg-light);
}

/* Typography */
h1 {
    color: var(--odd-fellow-blue);
    margin-bottom: 20px;
}

h2 {
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Messages & Alerts */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

.alert {
    border-radius: 0.5rem;
}

/* Containers & Cards */
.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background: linear-gradient(135deg, var(--odd-fellow-blue), #0055aa);
    color: white;
    font-weight: 600;
}

/* Form elements */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

textarea {
    min-height: 150px;
    font-size: 12px;
    font-family: monospace;
}

textarea.large {
    min-height: 300px;
}

/* Buttons */
button,
.btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

button:hover,
.btn:hover {
    background: var(--primary-hover);
}

.btn-primary {
    background: var(--odd-fellow-blue);
    border-color: var(--odd-fellow-blue);
}

.btn-primary:hover {
    background: #0055aa;
    border-color: #0055aa;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: black;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
}

.badge-default {
    background: #28a745;
    color: white;
}

.badge-christmas {
    background: #dc3545;
    color: white;
}

.badge-new_year {
    background: #ffc107;
    color: black;
}

.badge-general {
    background: #6c757d;
    color: white;
}

.badge-inactive {
    background: #6c757d;
    color: white;
}

/* Help text */
.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Tables */
.table {
    width: 100%;
}

.table th {
    background: var(--bg-panel);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Utility classes */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}
