/* Base component classes used across templates */

/* Navigation */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #c7d2fe;
    transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.nav-link-active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #4f46e5;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #4338ca;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: background-color 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover {
    background-color: #f9fafb;
}

/* Form inputs */
.input-field {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.select-field {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: #fff;
    outline: none;
    cursor: pointer;
}
.select-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
textarea.input-field {
    resize: vertical;
}

/* Table */
.th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.td {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: #111827;
    white-space: nowrap;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-green  { background-color: #dcfce7; color: #166534; }
.badge-red    { background-color: #fee2e2; color: #991b1b; }
.badge-blue   { background-color: #dbeafe; color: #1e40af; }
.badge-gray   { background-color: #f3f4f6; color: #374151; }
.badge-orange { background-color: #ffedd5; color: #9a3412; }
