*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #00796b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    user-select: none;
}

.btn:focus-visible {
    outline: 2px solid #00796b;
    outline-offset: 2px;
}

.btn:active {
    opacity: 0.85;
}

.btn:disabled,
.btn.is-loading {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: #00796b;
    color: #fff;
}

.btn-primary:hover {
    background: #00695c;
    text-decoration: none;
}

.btn-outline {
    background: #fff;
    color: #00796b;
    border: 1px solid #00796b;
}

.btn-outline:hover {
    background: #e0f2f1;
    text-decoration: none;
}

.btn-text {
    background: none;
    color: #666;
    padding: 8px 12px;
}

.btn-text:hover {
    color: #333;
    text-decoration: none;
}

.btn-danger {
    background: #d32f2f;
    color: #fff;
}

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

/* Forms */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.15);
}

/* Flash messages */
.flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-error {
    background: #ffeef0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
