/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafb;
    color: #1c1917;
    min-height: 100vh;
}

/* Typography */
h1 {
    text-align: center;
    color: #1c1917;
}

/* Navbar */
.navbar {
    background: #ffffff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1.5px solid #e6ebf1;
}

.navbar-brand {
    color: #1c1917;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 8px;
}

.navbar-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.navbar-nav a:hover {
    color: #1c1917;
    background: #f5f6f7;
}

.navbar-nav a.active {
    color: #1c1917;
    background: #e6f4ff;
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1.5px solid #e6ebf1;
    border-radius: 4px;
    padding: 16px;
}

.card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 10px;
}

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

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group.full-width {
    width: 100%;
}

label, span.label, legend {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

fieldset.form-group {
    border: none;
    padding: 0;
    margin: 0;
}

input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e6ebf1;
    border-radius: 4px;
    background: #fafafb;
    color: #1c1917;
    font-size: 14px;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: #a8a29e;
    background: #ffffff;
}

input::placeholder {
    color: #bfbfbf;
}

select {
    cursor: pointer;
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Buttons */
button {
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary {
    background: #1890ff;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #096dd9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(24, 144, 255, 0.2);
}

.btn-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.btn-success:hover:not(:disabled) {
    background: #dcfce7;
}

.btn-danger {
    background: #fff4f4;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
}

.btn-danger:hover:not(:disabled) {
    background: #fee2e2;
}

.btn-secondary {
    background: #f5f6f7;
    color: #1c1917;
    border: 1.5px solid #e6ebf1;
}

.btn-secondary:hover:not(:disabled) {
    background: #e6ebf1;
}

/* Utilities */
.hidden {
    display: none !important;
}

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

.text-muted {
    color: #9ca3af;
}

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #b91c1c;
}

.text-primary {
    color: #1c1917;
}

/* Error/Alert Messages */
.error-message {
    background: #fff4f4;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 1s infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
