/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
        Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #182026;
    background-color: #f5f5f5;
}

#app {
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.25rem;
}
h3 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Links */
a {
    color: #106ba3;
    text-decoration: none;
}

a:hover {
    color: #0e5a8a;
    text-decoration: underline;
}

/* Cards and containers */
.card {
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #5c7080;
}

.loading:after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #e1e5e9;
    border-top-color: #106ba3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error states */
.error {
    background-color: #f5f8fa;
    border: 1px solid #d9822b;
    border-radius: 3px;
    padding: 1rem;
    color: #a66908;
    margin-bottom: 1rem;
}

/* Success states */
.success {
    background-color: #f1f8ff;
    border: 1px solid #0f5132;
    border-radius: 3px;
    padding: 1rem;
    color: #0f5132;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    background-color: #f8f9fa;
    color: #182026;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.btn-primary {
    background-color: #106ba3;
    border-color: #106ba3;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0e5a8a;
    border-color: #0e5a8a;
    color: #fff;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 3px;
}

.table th,
.table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th {
    background-color: #f5f8fa;
    font-weight: 600;
    color: #5c7080;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #f5f8fa;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #182026;
}

.form-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: #106ba3;
    box-shadow: 0 0 0 3px rgba(16, 107, 163, 0.1);
}

/* Utility classes */
.text-center {
    text-align: center;
}
.text-muted {
    color: #5c7080;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.p-0 {
    padding: 0;
}
.p-1 {
    padding: 0.5rem;
}
.p-2 {
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin: 0 -1rem 1rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
