/**
 * Utility Classes
 * Common styles extracted from inline styles
 */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margins */
.m-0 { margin: 0; }
.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.my-2 { margin-top: 2em; margin-bottom: 2em; }

/* Padding */
.p-1 { padding: 1em; }
.p-2 { padding: 2em; }
.py-2 { padding-top: 2em; padding-bottom: 2em; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #b89092;
    color: white;
}

.btn-secondary {
    background: #999;
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin: 20px auto;
    max-width: 500px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flexbox */
.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1em; }
.gap-2 { gap: 2em; }

/* Display */
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

/* Borders */
.border-top { border-top: 1px solid #ddd; }
.border-bottom { border-bottom: 1px solid #ddd; }

/* Colors */
.text-muted { color: #999; }
.text-primary { color: #b89092; }

/* Font sizes */
.fs-sm { font-size: 14px; }
.fs-lg { font-size: 18px; }

/* Responsive */
@media (max-width: 768px) {
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }

    .container-sm {
        padding: 0 15px;
    }
}
