/* FBL Product DB Admin - Custom Styles */

/* General Layout */
.admin-wrapper {
    min-height: 100vh;
}

/* Sidebar */
.menu .icon {
    margin-right: 0.5rem;
}

/* Notification transitions */
.notification {
    transition: opacity 0.3s ease;
}

/* Card styling */
.stat-card {
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
}

.stat-card .title {
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    color: #7a7a7a;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table styling */
.table-container {
    margin-top: 1rem;
}

table.table {
    width: 100%;
}

table.table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

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

/* Form styling */
.form-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
    margin-bottom: 1.5rem;
}

.form-section .title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dbdbdb;
}

/* Tabs */
.tabs-container {
    margin-top: 1rem;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.tab-content.is-active {
    display: block;
}

.tab-pane {
    display: none;
}

.tab-pane.is-active {
    display: block;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.badge.is-primary { background-color: #00d1b2; color: #fff; }
.badge.is-success { background-color: #48c774; color: #fff; }
.badge.is-warning { background-color: #ffdd57; color: rgba(0,0,0,0.7); }
.badge.is-danger { background-color: #f14668; color: #fff; }
.badge.is-info { background-color: #3298dc; color: #fff; }
.badge.is-light { background-color: #f5f5f5; color: #363636; }

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .button {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* JSON Editor */
.json-editor {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 0.75rem;
}

/* Login Page */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box .logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #363636;
}

.login-box .logo p {
    color: #7a7a7a;
    font-size: 0.875rem;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3298dc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .columns.is-gapless > .column.is-2 {
        display: none;
    }

    .stat-card .stat-value {
        font-size: 2rem;
    }
}

/* Fix for title/subtitle overlap */
.title + .subtitle {
    margin-top: -1.25rem !important;
}

.level .title {
    margin-bottom: 0.5rem;
}

.level .subtitle {
    margin-top: 0 !important;
}

/* Utility classes */
.mt-05 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: #7a7a7a; }
.text-right { text-align: right; }
.text-center { text-align: center; }
