:root {
    --primary-color: #594545;
    --muted-color: #6b7280;
}

/* Layout shell */
.page-shell {
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-bottom: 12px;
}

.breadcrumb-modern a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-modern span {
    color: var(--muted-color);
}

/* Header */
.page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-heading {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin-top: 4px;
    font-size: 0.875rem;
    color: #6b7280;
}

.btn {
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.15s ease;
}

#datatable td button,
#datatable td a {
    border: none;
    margin-bottom: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Primary button */
.btn-create,
.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-create:hover,
.btn-primary:hover {
    background: #000000;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
}

/* Card surface */
.surface {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0px 0px 8px -3px #594546;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

/* Header */
.data-table thead th {
    background: #fafafa;
    padding: 16px 18px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

/* Vertical separators (subtle, modern) */
.data-table thead th+th,
.data-table tbody td+td {
    border-left: 1px solid #f1f5f9;
}

/* Body */
.data-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--primary-color);
}

/* Row hover */
.data-table tbody tr {
    transition: background 0.12s ease;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.surface .dt-length label {
    margin-left: 8px;
}

/* Action buttons */
.data-table .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
}

/* Image Preview Styles */
.image-preview-container {
    margin-top: 8px;
}

.preview-wrapper {
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.preview-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.preview-remove-btn:hover {
    opacity: 1;
}

.current-image-preview {
    max-width: 200px;
}

.current-image-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* User Avatar Styles */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

/* Header Background */
.header-bg {
    background: var(--primary-color);
}

/* Table Header Background */
.table-header-bg {
    background-color: #f8f9fa !important;
}

/* Primary Button Custom */
.btn-primary-custom {
    background-color: #6366f1;
    border-color: #6366f1;
    color: white;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}