/**
 * ARP 2.0 Main Stylesheet
 * Frontend styles for the Asset Recovery Platform
 */

/* Reset and Base Styles */
.arp-app-container * {
    box-sizing: border-box;
}

.arp-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 600px;
    position: relative;
}

/* Loading State */
.arp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.arp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: arp-spin 1s linear infinite;
}

@keyframes arp-spin {
    to { transform: rotate(360deg); }
}

.arp-loading p {
    margin-top: 20px;
    color: #666;
}

/* Main Layout */
.arp-main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* Top Navigation */
.arp-top-nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.arp-nav-brand {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.arp-nav-brand h2 {
    margin: 0;
    font-size: 20px;
    color: #2271b1;
}

.arp-version {
    margin-left: 10px;
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.arp-nav-menu {
    display: flex;
    flex: 1;
    gap: 5px;
}

.arp-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s;
}

.arp-nav-link:hover {
    background: #f0f0f0;
    color: #2271b1;
}

.arp-nav-link.active {
    background: #2271b1;
    color: #fff;
}

.arp-nav-link .dashicons {
    margin-right: 5px;
    font-size: 18px;
}

.arp-badge {
    background: #d63638;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* User Menu */
.arp-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arp-user-name {
    color: #666;
}

.arp-user-menu {
    position: relative;
}

.arp-user-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.arp-user-toggle:hover {
    background: #f0f0f0;
}

.arp-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.arp-dropdown-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.arp-dropdown-item:hover {
    background: #f0f0f0;
}

.arp-dropdown-menu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* Main Content */
.arp-main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.arp-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumbs */
.arp-breadcrumbs {
    margin-bottom: 15px;
    font-size: 13px;
}

.arp-breadcrumb {
    color: #666;
}

.arp-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
}

.arp-breadcrumb a:hover {
    text-decoration: underline;
}

.arp-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Page Header */
.arp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.arp-page-title {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.arp-page-actions {
    display: flex;
    gap: 10px;
}

/* Status Bar */
.arp-status-bar {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.arp-status-left,
.arp-status-center,
.arp-status-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.arp-status-message {
    padding: 2px 8px;
    border-radius: 3px;
    background: #f0f0f0;
}

.arp-status-message.success {
    background: #d4edda;
    color: #155724;
}

.arp-status-message.error {
    background: #f8d7da;
    color: #721c24;
}

.arp-connection-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arp-connection-status.connected {
    color: #28a745;
}

.arp-connection-status.disconnected {
    color: #dc3545;
}

/* Dashboard Styles */
.arp-dashboard {
    padding: 20px;
}

.arp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.arp-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.arp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.arp-stat-icon {
    margin-right: 15px;
}

.arp-stat-icon .dashicons {
    font-size: 36px;
    color: #2271b1;
}

.arp-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.arp-stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.arp-dashboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arp-dashboard-section h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.arp-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.arp-activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.arp-activity-item:last-child {
    border-bottom: none;
}

.arp-activity-time {
    color: #999;
    font-size: 12px;
}

.arp-activity-desc {
    flex: 1;
    margin-left: 15px;
}

/* Buttons */
.arp-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.arp-button:hover {
    background: #f0f0f0;
}

.arp-button-primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.arp-button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.arp-button-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.arp-button-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.arp-button-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.arp-button-success:hover {
    background: #218838;
    border-color: #218838;
}

.arp-button .dashicons {
    margin-right: 5px;
}

.arp-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Styles */
.arp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.arp-modal {
    background: #fff;
    border-radius: 8px;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.arp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}


.arp-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.arp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.arp-modal-close:hover {
    color: #333;
}

.arp-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.arp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Loading Overlay */
.arp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.arp-loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* Toast Notifications */
.arp-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
}

.arp-toast {
    background: #fff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 10px;
    min-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.arp-toast-success {
    border-left-color: #28a745;
}

.arp-toast-error {
    border-left-color: #dc3545;
}

.arp-toast-warning {
    border-left-color: #ffc107;
}

.arp-toast .dashicons {
    margin-right: 10px;
    font-size: 20px;
}

.arp-toast-message {
    flex: 1;
}

.arp-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    margin-left: 10px;
}

/* Toast Animation */
.toast-enter-active,
.toast-leave-active {
    transition: all 0.3s;
}

.toast-enter-from {
    transform: translateX(100%);
    opacity: 0;
}

.toast-leave-to {
    transform: translateX(100%);
    opacity: 0;
}

/* Forms */
.arp-form {
    max-width: 600px;
}

.arp-form-group {
    margin-bottom: 20px;
}

.arp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.arp-form-group input[type="text"],
.arp-form-group input[type="email"],
.arp-form-group input[type="password"],
.arp-form-group input[type="number"],
.arp-form-group input[type="date"],
.arp-form-group input[type="tel"],
.arp-form-group select,
.arp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.arp-form-group input:focus,
.arp-form-group select:focus,
.arp-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.arp-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.arp-form-group input[type="checkbox"],
.arp-form-group input[type="radio"] {
    margin-right: 8px;
}

.arp-form-group .arp-help-text {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.arp-form-group.has-error input,
.arp-form-group.has-error select,
.arp-form-group.has-error textarea {
    border-color: #dc3545;
}

.arp-form-group .arp-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.arp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Data Tables */
.arp-data-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arp-data-table th {
    background: #f9f9f9;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
}

.arp-data-table th.sortable:hover {
    background: #f0f0f0;
}

.arp-data-table th.sorted-asc::after {
    content: " ↑";
    color: #2271b1;
}

.arp-data-table th.sorted-desc::after {
    content: " ↓";
    color: #2271b1;
}

.arp-data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.arp-data-table tr:last-child td {
    border-bottom: none;
}

.arp-data-table tr:hover {
    background: #f9f9f9;
}

.arp-data-table .arp-table-actions {
    display: flex;
    gap: 5px;
}

.arp-data-table .arp-table-actions button {
    padding: 4px 8px;
    font-size: 12px;
}

/* Search and Filter Bar */
.arp-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arp-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 250px;
}

.arp-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

/* Pagination */
.arp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding: 20px;
}

.arp-page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.arp-page-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #2271b1;
}

.arp-page-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.arp-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.arp-page-info {
    margin: 0 15px;
    color: #666;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pre_vetting {
    background: #e3e3e3;
    color: #666;
}

.status-new {
    background: #cfe2ff;
    color: #052c65;
}

.status-active,
.status-in_progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed,
.status-closed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.score-high {
    background: #d4edda;
    color: #155724;
}

.score-medium {
    background: #fff3cd;
    color: #856404;
}

.score-low {
    background: #f8d7da;
    color: #721c24;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-high {
    background: #fee;
    color: #c00;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-low {
    background: #e0e0e0;
    color: #666;
}

/* Admin Interface Components */
.arp-admin-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arp-admin-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Settings Page */
.arp-settings-section {
    margin-bottom: 30px;
}

.arp-settings-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.arp-settings-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.arp-settings-label {
    font-weight: 500;
    color: #555;
    padding-top: 8px;
}

.arp-settings-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* User Management */
.arp-users-grid {
    display: grid;
    gap: 20px;
}

.arp-user-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.arp-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

.arp-user-info {
    flex: 1;
}

.arp-user-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.arp-user-meta {
    font-size: 13px;
    color: #666;
}

.arp-user-actions {
    display: flex;
    gap: 5px;
}

/* Role Management */
.arp-roles-list {
    display: grid;
    gap: 15px;
}

.arp-role-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.arp-role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.arp-role-name {
    font-weight: 500;
    color: #333;
}

.arp-role-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.arp-cap-badge {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #555;
}

/* Workflow Configuration */
.arp-workflow-stages {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.arp-workflow-stage {
    min-width: 200px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.arp-workflow-stage.active {
    border-color: #2271b1;
    background: #f0f8ff;
}

.arp-workflow-stage-header {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arp-workflow-stage-number {
    background: #2271b1;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Scoring Configuration */
.arp-scoring-criteria {
    display: grid;
    gap: 15px;
}

.arp-criterion-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.arp-criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.arp-criterion-name {
    font-weight: 500;
    color: #333;
}

.arp-criterion-weight {
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.arp-criterion-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* Reports Section */
.arp-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.arp-report-filters {
    display: flex;
    gap: 10px;
}

.arp-report-actions {
    display: flex;
    gap: 10px;
}

.arp-chart-container {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 300px;
}

.arp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.arp-metric-card {
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    padding: 15px;
    border-radius: 4px;
}

.arp-metric-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.arp-metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.arp-metric-change {
    font-size: 12px;
    margin-top: 5px;
}

.arp-metric-change.positive {
    color: #28a745;
}

.arp-metric-change.negative {
    color: #dc3545;
}

/* System Info */
.arp-system-info {
    display: grid;
    gap: 20px;
}

.arp-info-card {

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.arp-info-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.arp-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.arp-info-label {
    font-weight: 500;
    color: #555;
    padding-right: 20px;
}

.arp-info-value {
    color: #333;
    font-family: monospace;
}

/* Tabs */
.arp-tabs {
    margin-bottom: 20px;
}

.arp-tab-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.arp-tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #666;
}

.arp-tab-button:hover {
    background: #f0f0f0;
}

.arp-tab-button.active {
    border-bottom-color: #2271b1;
    color: #2271b1;
    font-weight: 500;
}

.arp-tab-content {
    display: none;
}

.arp-tab-content.active {
    display: block;
}

/* File Upload */
.arp-file-upload {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s;
}

.arp-file-upload:hover {
    border-color: #2271b1;
    background: #f0f8ff;
}

.arp-file-upload.dragging {
    border-color: #2271b1;
    background: #f0f8ff;
}

.arp-file-upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.arp-file-upload-text {
    color: #666;
}

.arp-file-upload input[type="file"] {
    display: none;
}

/* Empty States */
.arp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.arp-empty-icon {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.arp-empty-title {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.arp-empty-description {
    color: #999;
    margin-bottom: 20px;
}

/* Placeholder Component */
.arp-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.arp-placeholder-icon .dashicons {
    font-size: 64px;
    color: #ddd;
}

.arp-placeholder h2 {
    margin: 20px 0 10px;
    color: #666;
}

.arp-placeholder p {
    color: #999;
}

.arp-muted {
    font-size: 12px;
    font-style: italic;
}

/* Utilities */
.arp-no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.arp-text-center {
    text-align: center;
}

.arp-text-right {
    text-align: right;
}

.arp-text-muted {
    color: #999;
}

.arp-mt-10 {
    margin-top: 10px;
}

.arp-mt-20 {
    margin-top: 20px;
}

.arp-mb-10 {
    margin-bottom: 10px;
}

.arp-mb-20 {
    margin-bottom: 20px;
}

.arp-p-10 {
    padding: 10px;
}

.arp-p-20 {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arp-nav-menu {
        display: none;
    }
    
    .arp-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .arp-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arp-page-actions {
        margin-top: 10px;
    }
    
    .arp-status-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .arp-filter-bar {
        flex-direction: column;
    }
    
    .arp-search-input {
        width: 100%;
    }
    
    .arp-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .arp-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .arp-modal {
        width: 90%;
        margin: 20px;
    }
    
    .arp-data-table {
        font-size: 12px;
    }
    
    .arp-data-table th,
    .arp-data-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .arp-nav-brand h2 {
        font-size: 16px;
    }
    
    .arp-version {
        display: none;
    }
    
    .arp-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .arp-toast {
        min-width: 250px;
        right: 10px;
    }
}

/* Print Styles */
@media print {
    .arp-top-nav,
    .arp-status-bar,
    .arp-page-actions,
    .arp-filter-bar,
    .arp-pagination,
    .arp-button,
    .arp-modal,
    .arp-toast-container {
        display: none !important;
    }
    
    .arp-main-content {
        padding: 0;
    }
    
    .arp-data-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Dark Theme Support */
.arp-app-container[data-theme="dark"] {
    background: #1a1a1a;
    color: #e0e0e0;
}

.arp-app-container[data-theme="dark"] .arp-top-nav,
.arp-app-container[data-theme="dark"] .arp-status-bar,
.arp-app-container[data-theme="dark"] .arp-modal,
.arp-app-container[data-theme="dark"] .arp-stat-card,
.arp-app-container[data-theme="dark"] .arp-dashboard-section,
.arp-app-container[data-theme="dark"] .arp-admin-section,
.arp-app-container[data-theme="dark"] .arp-data-table,
.arp-app-container[data-theme="dark"] .arp-placeholder {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

.arp-app-container[data-theme="dark"] .arp-dropdown-menu {
    background: #333;
    border-color: #444;
}

.arp-app-container[data-theme="dark"] .arp-dropdown-item:hover {
    background: #444;
}

.arp-app-container[data-theme="dark"] input,
.arp-app-container[data-theme="dark"] select,
.arp-app-container[data-theme="dark"] textarea {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

.arp-app-container[data-theme="dark"] .arp-button {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

.arp-app-container[data-theme="dark"] .arp-button:hover {
    background: #444;
}

/* Reset and Base Styles */
.arp-app-container * {
    box-sizing: border-box;
}

.arp-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

/* Main Navigation Header */
.arp-main-nav {
    min-height: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.arp-main-nav .navbar-brand {
    margin-right: 3rem;
}

.arp-logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.arp-logo-container i {
    color: white !important;
}

/* Navigation Dropdown Enhancements */
.arp-main-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
}

.arp-main-nav .dropdown-menu-lg {
    min-width: 480px;
    padding: 1rem;
}

.arp-main-nav .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    border-radius: 4px;
    margin: 2px 8px;
}

.arp-main-nav .dropdown-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    color: #333;
}

.arp-main-nav .dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: #6c757d;
}

.arp-main-nav .dropdown-header {
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Link Styling */
.arp-main-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 0 2px;
}

.arp-main-nav .nav-link:hover {
    background: #f8f9fa;
    color: #212529;
}

.arp-main-nav .nav-link i {
    margin-right: 6px;
}

/* Active Route Indicator */
.arp-main-nav .router-link-active {
    background: #e7f3ff;
    color: #0066cc;
}

/* User Account Section */
.arp-main-nav .btn-link {
    text-decoration: none;
}

/* Main Content Area */
.arp-main-content {
    flex: 1;
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* Status Bar */
.arp-status-bar {
    background: #fff;
    border-top: 1px solid #dee2e6;
    min-height: 40px;
}

/* Loading State */
.arp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.arp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: arp-spin 1s linear infinite;
}

@keyframes arp-spin {
    to { transform: rotate(360deg); }
}

/* Card Enhancements */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
}

/* Dashboard Specific Styles */
.arp-dashboard .card {
    height: 100%;
}

.arp-dashboard .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
}

/* Data Tables with Bootstrap */
.table {
    background: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Status Badges */
.status-badge,
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Department Badge Colors */
.badge-department-dm { background-color: #6f42c1; }
.badge-department-rs { background-color: #20c997; }
.badge-department-ha { background-color: #fd7e14; }
.badge-department-cm { background-color: #0dcaf0; }
.badge-department-lg { background-color: #198754; }
.badge-department-am { background-color: #ffc107; }
.badge-department-bd { background-color: #d63384; }
.badge-department-ad { background-color: #6c757d; }

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5569d8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Toast Notifications */
.toast {
    border-radius: 8px;
    border-left-width: 4px;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: #6c757d;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .arp-main-nav {
        min-height: auto;
    }
    
    .arp-main-nav .navbar-brand {
        margin-right: 0;
    }
    
    .arp-logo-container {
        width: 45px;
        height: 45px;
    }
    
    .arp-main-nav .dropdown-menu-lg {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .arp-main-content {
        padding: 1rem 0;
    }
    
    .arp-dashboard .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .arp-main-nav,
    .arp-status-bar,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    .arp-main-content {
        padding: 0;
    }
}

/* Dark Theme Support */
.arp-app-container[data-theme="dark"] {
    background: #1a1a1a;
    color: #e0e0e0;
}

.arp-app-container[data-theme="dark"] .arp-main-nav,
.arp-app-container[data-theme="dark"] .card {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

.arp-app-container[data-theme="dark"] .dropdown-menu {
    background: #333;
    border-color: #444;
}

.arp-app-container[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

.arp-app-container[data-theme="dark"] .dropdown-item:hover {
    background: #444;
}

/* Utility Classes */
.border-primary { border-color: #0d6efd !important; }
.border-info { border-color: #0dcaf0 !important; }
.border-success { border-color: #198754 !important; }
.border-warning { border-color: #ffc107 !important; }
.border-danger { border-color: #dc3545 !important; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Department Specific Colors */
.dept-data-management { color: #6f42c1; }
.dept-research { color: #20c997; }
.dept-heir-advocates { color: #fd7e14; }
.dept-case-management { color: #0dcaf0; }
.dept-legal { color: #198754; }
.dept-asset-management { color: #ffc107; }
.dept-business-dev { color: #d63384; }
.dept-administration { color: #6c757d; }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Enhanced Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Notification Badge Animation */
.badge.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-indicator.active { background: #198754; }
.status-indicator.pending { background: #ffc107; }
.status-indicator.inactive { background: #dc3545; }

/* Custom Bootstrap Overrides */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.nav-tabs .nav-link {
    color: #495057;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Grid System Enhancements */
.row.g-3 > * {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
}

/* Progress Bars */
.progress {
    height: 1.5rem;
    border-radius: 0.5rem;
    background-color: #e9ecef;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.875rem;
}

/* List Group Enhancements */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Department Grid View */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.department-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.department-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Search Bar Styling */
.search-bar {
    position: relative;
}

.search-bar input {
    padding-left: 2.5rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover,
.file-upload-area.dragging {
    border-color: #0066cc;
    background: #f0f8ff;
}

/* Metric Cards */
.metric-card {
    padding: 1.5rem;
    border-left: 4px solid #0066cc;
    background: #fff;
    border-radius: 8px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #212529;
}

.metric-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0066cc;
    border: 2px solid #fff;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
}

/* Action Buttons Group */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* Custom Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background: #cfe2ff;
    color: #084298;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}




.mb-4 .breadcrumb { display: none!important; }

.breadcrumb .breadcrumb { display: block; }



/* ============================================
   ARP 2.0 - COMPLETE Template-Specific CSS
   Enterprise-Level Styling for ALL Templates
   ============================================ */

/* Dashboard Template Styles */
.arp-dashboard {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fc 100%);
    min-height: calc(100vh - 120px);
}

.arp-dashboard .arp-metric-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    overflow: hidden;
}

.arp-dashboard .arp-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.arp-dashboard .arp-metric-card.border-left-primary {
    border-left: 4px solid #4e73df;
}

.arp-dashboard .arp-metric-card.border-left-success {
    border-left: 4px solid #1cc88a;
}

.arp-dashboard .arp-metric-card.border-left-warning {
    border-left: 4px solid #f6c23e;
}

.arp-dashboard .arp-metric-card.border-left-info {
    border-left: 4px solid #36b9cc;
}

.arp-dashboard .metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arp-dashboard .arp-activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.arp-dashboard .arp-activity-feed::-webkit-scrollbar {
    width: 6px;
}

.arp-dashboard .arp-activity-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.arp-dashboard .arp-activity-feed::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.arp-dashboard .arp-activity-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.arp-dashboard .arp-activity-item:hover {
    background: #e9ecef;
}

.arp-dashboard .arp-activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arp-dashboard .arp-quick-actions .btn {
    height: 120px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.arp-dashboard .arp-quick-actions .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Files List Template Styles */
.arp-files {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-files .arp-filters {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-files .table {
    background: #ffffff;
}

.arp-files .table thead th {
    border-bottom: 2px solid #e3e6f0;
    color: #5a5c69;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.arp-files .table tbody tr {
    transition: all 0.2s ease;
}

.arp-files .table tbody tr:hover {
    background: #f8f9fc;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.arp-files .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

/* File Detail Template Styles */
.arp-file-detail {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-file-detail .nav-tabs {
    border-bottom: 2px solid #e3e6f0;
    margin-bottom: 2rem;
}

.arp-file-detail .nav-tabs .nav-link {
    color: #858796;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.arp-file-detail .nav-tabs .nav-link:hover {
    color: #4e73df;
}

.arp-file-detail .nav-tabs .nav-link.active {
    color: #4e73df;
    background: transparent;
}

.arp-file-detail .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
    border-radius: 3px 3px 0 0;
}

.arp-file-detail .timeline {
    position: relative;
    padding-left: 40px;
}

.arp-file-detail .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4e73df 0%, rgba(78, 115, 223, 0.1) 100%);
}

.arp-file-detail .timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.arp-file-detail .timeline-marker {
    position: absolute;
    left: -30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arp-file-detail .timeline-content {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Create File Template Styles */
.arp-create-file {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-create-file .progress-steps {
    margin-bottom: 3rem;
    position: relative;
}

.arp-create-file .progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e3e6f0;
    z-index: 0;
}

.arp-create-file .step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.arp-create-file .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e3e6f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #858796;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.arp-create-file .step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.arp-create-file .step-label {
    font-size: 0.875rem;
    color: #858796;
    font-weight: 500;
}

.arp-create-file .step.active .step-label {
    color: #4e73df;
    font-weight: 600;
}

.arp-create-file .arp-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.arp-create-file .arp-upload-area {
    border: 2px dashed #e3e6f0;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.arp-create-file .arp-upload-area:hover {
    border-color: #4e73df;
    background: #f0f3ff;
    transform: scale(1.02);
}

/* Estate Templates (List & Detail) Styles */
.arp-estates {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-estates .arp-estate-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #ffffff;
}

.arp-estates .arp-estate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.arp-estates .arp-estate-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.arp-estate-detail .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-estate-detail .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.arp-estate-detail .progress {
    height: 25px;
    border-radius: 12px;
    background: #f0f3f6;
    overflow: visible;
}

.arp-estate-detail .progress-bar {
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Asset Templates (List & Detail) Styles */
.arp-assets {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-assets .arp-asset-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #ffffff;
}

.arp-assets .arp-asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.arp-asset-detail .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.arp-asset-detail .card-header {
    background: #ffffff;
    border-bottom: 2px solid #f0f3f6;
    padding: 1.25rem;
}

.arp-asset-detail .card-header h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Heir Templates (List & Detail) Styles */
.arp-heirs {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-heirs .arp-heir-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #ffffff;
}

.arp-heirs .arp-heir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.arp-heir-detail .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-heir-detail .notification-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Tasks Template Styles */
.arp-tasks {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-tasks .arp-task-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.arp-tasks .arp-task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arp-tasks .arp-task-priority {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arp-tasks .arp-task-priority.high {
    background: linear-gradient(135deg, #f93b1d 0%, #ea1e63 100%);
    color: #ffffff;
}

.arp-tasks .arp-task-priority.medium {
    background: linear-gradient(135deg, #f6c23e 0%, #ffa726 100%);
    color: #ffffff;
}

.arp-tasks .arp-task-priority.low {
    background: linear-gradient(135deg, #1cc88a 0%, #13b47c 100%);
    color: #ffffff;
}

/* Department Base Template Styles */
.arp-dept-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2.5rem 2rem;
    margin: -2rem -2rem 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.arp-dept-header h1 {
    margin: 0;
    font-weight: 700;
}

.arp-dept-header p {
    opacity: 0.9;
    margin: 0;
}

.arp-dept-header .btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.arp-dept-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.arp-dept-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.arp-dept-metric {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-dept-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.arp-dept-metric .metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.arp-dept-metric .metric-label {
    color: #858796;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Data Management Department Specific */
.arp-dept-data-management {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-data-management .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-dept-data-management .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.arp-dept-data-management .table {
    background: #ffffff;
}

.arp-dept-data-management .table thead th {
    border-bottom: 2px solid #e3e6f0;
    color: #5a5c69;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Research Department Specific */
.arp-dept-research {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-research .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-dept-research .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.arp-dept-research .progress {
    height: 20px;
    border-radius: 10px;
    background: #e3e6f0;
}

.arp-dept-research .progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
}

/* Genealogy Department Specific */
.arp-dept-genealogy {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-genealogy .family-tree-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-dept-genealogy .family-tree-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Heir Advocates Department Specific */
.arp-dept-heir-advocates {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-heir-advocates .hubspot-status {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
}

/* Case Management Department Specific */
.arp-dept-case-management {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-case-management .pipeline-stage {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-dept-case-management .pipeline-stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Legal Department Specific */
.arp-dept-legal {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-legal .upcoming-hearing {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Asset Management Department Specific */
.arp-dept-asset-management {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-asset-management .asset-portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-dept-asset-management .asset-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Business Development Department Specific */
.arp-dept-business-dev {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-business-dev .opportunity-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.arp-dept-business-dev .opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Administration Department Specific */
.arp-dept-administration {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-dept-administration .system-activity-chart {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Legal Cases Template Styles */
.arp-legal-cases {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-legal-cases .arp-case-status-card {
    border-width: 2px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.arp-legal-cases .arp-case-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.arp-legal-cases .arp-case-status-card .card-body {
    padding: 1.5rem;
}

/* Legal Hearings Template Styles */
.arp-legal-hearings {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-legal-hearings .hearing-card {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Legal Partition Template Styles */
.arp-legal-partition {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-legal-partition .partition-status-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-legal-partition .partition-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Legal Eviction Template Styles */
.arp-legal-eviction {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-legal-eviction .eviction-stage {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.arp-legal-eviction .eviction-stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* HubSpot Integration Template Styles */
.arp-hubspot {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-hubspot .arp-hubspot-status {
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.3);
}

.arp-hubspot .arp-hubspot-status.connected {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.arp-hubspot .arp-hubspot-status.disconnected {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.arp-hubspot .arp-sync-activity {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.arp-hubspot .arp-sync-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.arp-hubspot .arp-sync-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.arp-hubspot .arp-sync-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #ffffff;
}

/* Admin Users Template Styles */
.arp-admin-users {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-users .arp-user-info {
    display: flex;
    align-items: center;
}

.arp-admin-users .arp-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid #e3e6f0;
}

.arp-admin-users .arp-user-details .user-name {
    font-weight: 600;
    color: #2c3e50;
}

.arp-admin-users .arp-user-details .user-id {
    font-size: 0.85rem;
    color: #858796;
}

.arp-admin-users .arp-role-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.arp-admin-users .arp-role-badge.admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.arp-admin-users .arp-role-badge.manager {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
}

.arp-admin-users .arp-role-badge.user {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
}

.arp-admin-users .arp-user-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.arp-admin-users .arp-user-status.active {
    color: #1cc88a;
}

.arp-admin-users .arp-user-status.inactive {
    color: #e74a3b;
}

.arp-admin-users .arp-user-status i {
    font-size: 0.5rem;
}

/* Outreach Template Styles */
.arp-outreach {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-outreach .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Cross References Template Styles */
.arp-cross-references {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-cross-references .workflow-visual {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.arp-cross-references .workflow-stage {
    background: #ffffff;
    padding: 1rem;
    border-radius: 10px;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arp-cross-references .workflow-arrow {
    font-size: 2rem;
    color: #858796;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

/* Status Tracker Template Styles */
.arp-status-tracker {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-status-tracker .arp-status-bar-full {
    display: flex;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.arp-status-tracker .status-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.3s ease;
}

.arp-status-tracker .status-segment:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.arp-status-tracker .status-segment span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Department Tasks Template Styles */
.arp-department-tasks {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-department-tasks .task-distribution {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-department-tasks .progress {
    height: 20px;
    border-radius: 10px;
    background: #e3e6f0;
}

.arp-department-tasks .progress-bar {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Bulk Task Management Template Styles */
.arp-bulk-tasks {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-bulk-tasks .bulk-action-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-bulk-tasks .task-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Workflow Statuses Template Styles */
.arp-workflow-statuses {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-workflow-statuses .accordion-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-workflow-statuses .accordion-button {
    background: #ffffff;
    border-radius: 12px;
    font-weight: 600;
}

.arp-workflow-statuses .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #4e73df;
}

/* Department Transfers Template Styles */
.arp-department-transfers {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-department-transfers .transfer-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-department-transfers .transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4e73df;
    margin: 0 1rem;
}

/* Checklists Template Styles */
.arp-checklists {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-checklists .checklist {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
}

.arp-checklists .checklist .form-check {
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.arp-checklists .checklist .form-check:hover {
    background: #f8f9fc;
}

/* Documents Library Template Styles */
.arp-documents {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-documents .document-category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-documents .document-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Document Templates Template Styles */
.arp-document-templates {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-document-templates .template-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid #e3e6f0;
}

.arp-document-templates .template-card:hover {
    border-color: #4e73df;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(78, 115, 223, 0.15);
}

/* Document Generation Template Styles */
.arp-document-generation {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-document-generation .generation-queue {
    background: #f8f9fc;
    padding: 1.5rem;
    border-radius: 12px;
}

.arp-document-generation .progress {
    height: 20px;
    border-radius: 10px;
    background: #e3e6f0;
}

.arp-document-generation .progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
}

/* Phone System Template Styles */
.arp-phone-system {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-phone-system .active-call-display {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.3);
}

/* Notifications Template Styles */
.arp-notifications {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-notifications .notification-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arp-notifications .list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-notifications .list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile Template Styles */
.arp-profile {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-profile .profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arp-profile .profile-stats {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Help Template Styles */
.arp-help {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-help .help-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.arp-help .help-card:hover {
    border-color: #4e73df;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.2);
}

/* Properties Real Estate Template Styles */
.arp-properties-real-estate {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-properties-real-estate .property-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-properties-real-estate .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Liquidation Template Styles */
.arp-liquidation {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-liquidation .liquidation-pipeline {
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
}

.arp-liquidation .liquidation-pipeline > div {
    position: relative;
    padding: 1rem;
}

.arp-liquidation .liquidation-pipeline > div::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #dee2e6;
}

.arp-liquidation .liquidation-pipeline > div:last-child::after {
    display: none;
}

/* Reports Dashboard Template Styles */
.arp-reports-dashboard {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-reports-dashboard .chart-placeholder {
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.arp-reports-dashboard .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-reports-dashboard .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Tools: Bulk Upload Template Styles */
.arp-tools-bulk-upload {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-tools-bulk-upload .upload-zone {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 4rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    transition: all 0.3s ease;
}

.arp-tools-bulk-upload .upload-zone:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
    transform: scale(1.02);
}

/* Tools: Estate Scoring Template Styles */
.arp-tools-scoring {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-tools-scoring .scoring-criteria-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-tools-scoring .scoring-criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.arp-tools-scoring .form-range {
    height: 8px;
    border-radius: 4px;
    background: #e3e6f0;
}

.arp-tools-scoring .form-range::-webkit-slider-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Admin Settings Template Styles */
.arp-admin-settings {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-settings .nav-tabs {
    border: none;
    background: #f8f9fc;
    padding: 0.5rem;
    border-radius: 12px;
}

.arp-admin-settings .nav-tabs .nav-link {
    border: none;
    color: #858796;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.arp-admin-settings .nav-tabs .nav-link:hover {
    background: #ffffff;
    color: #4e73df;
}

.arp-admin-settings .nav-tabs .nav-link.active {
    background: #ffffff;
    color: #4e73df;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Admin Roles Template Styles */
.arp-admin-roles {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-roles .role-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-admin-roles .role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Admin Departments Template Styles */
.arp-admin-departments {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-departments .department-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-admin-departments .department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Admin Workflow Template Styles */
.arp-admin-workflow {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-workflow .workflow-visual {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 12px;
}

.arp-admin-workflow .workflow-stage {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    min-width: 140px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 0 0.5rem;
}

.arp-admin-workflow .stage-header {
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.arp-admin-workflow .stage-status {
    padding: 0.35rem 0.5rem;
    background: #f8f9fc;
    border-radius: 4px;
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: #5a5c69;
    transition: all 0.2s ease;
}

.arp-admin-workflow .stage-status:hover {
    background: #e3e6f0;
    transform: translateX(3px);
}

.arp-admin-workflow .workflow-arrow {
    color: #858796;
    font-size: 1.5rem;
    padding: 0 0.5rem;
}

/* Admin Scoring Template Styles */
.arp-admin-scoring {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-scoring .scoring-metric-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-admin-scoring .scoring-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Admin System Template Styles */
.arp-admin-system {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-system .system-status-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.arp-admin-system .system-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Admin Permissions Template Styles */
.arp-admin-permissions {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-permissions .permission-matrix {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.arp-admin-permissions .permission-matrix td {
    text-align: center;
    padding: 0.75rem;
}

.arp-admin-permissions .permission-matrix input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Admin Audit Log Template Styles */
.arp-admin-audit-log {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-admin-audit-log .audit-entry {
    padding: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.arp-admin-audit-log .audit-entry:hover {
    background: #f8f9fc;
    border-left-color: #4e73df;
}

/* Departments Metrics Template Styles */
.arp-departments-metrics {
    padding: 2rem;
    background: #f8f9fc;
}

.arp-departments-metrics .metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.arp-departments-metrics .performance-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Placeholder Template Styles */
.arp-placeholder {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arp-placeholder .arp-placeholder-icon {
    margin-bottom: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.arp-placeholder h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.arp-placeholder p {
    color: #858796;
    max-width: 500px;
    margin-bottom: 2rem;
}

/* Global Card Enhancements for All Templates */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #ffffff;
    border-bottom: 2px solid #f0f3f6;
    padding: 1.25rem;
    font-weight: 600;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-info {
    border-bottom: none;
}

/* Button Enhancements for All Templates */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #ffa726 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover {
    color: #ffffff;
}

/* Form Controls Enhancement for All Templates */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge Enhancements for All Templates */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* Table Enhancements for All Templates */
.table {
    background: #ffffff;
}

.table thead th {
    border-bottom: 2px solid #e3e6f0;
    color: #5a5c69;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fc;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

/* Dropdown Enhancements for All Templates */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #111;
    transform: translateX(5px);
}

/* Modal Enhancements for All Templates */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Scrollbar Styling for All Templates */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Loading States for All Templates */
.arp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.arp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications for All Templates */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left-width: 4px;
}

.toast-header {
    background: #f8f9fc;
    border-radius: 10px 10px 0 0;
}

/* Pagination Styles for All Templates */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: none;
    border-radius: 8px;
    color: #858796;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

/* Responsive Adjustments for All Templates */
@media (max-width: 1200px) {
    .arp-dept-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .arp-dept-header {
        padding: 1.5rem 1rem;
    }
    
    .arp-dept-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .progress-steps {
        flex-direction: column;
    }
    
    .arp-dashboard .arp-quick-actions .btn {
        height: 100px;
    }
    
    .card {
        border-radius: 8px;
    }
    
    .btn {
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 576px) {
    .arp-dept-metrics {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .arp-dashboard .metric-value {
        font-size: 1.5rem;
    }
    
    .arp-dept-metric .metric-value {
        font-size: 2rem;
    }
}

/* Print Styles for All Templates */
@media print {
    .arp-dept-header,
    .btn,
    .dropdown,
    .nav-tabs {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}





.upload-type-card {
    text-align: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-type-card:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-type-card.active {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.upload-dropzone {
    text-align: center;
    padding: 60px 20px;
    border: 3px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
}

.upload-dropzone.dragging {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.mapping-row {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.csv-column {
    min-width: 200px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.error-list {
    max-height: 300px;
    overflow-y: auto;
}

.preview-container {
    max-height: 400px;
    overflow-y: auto;
}










