/**
 * Styles for all placeholder tab content
 */

/* General placeholder styling */
.loan-dashboard-placeholder-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/**************************************
 * DOCUMENT TAB STYLES
 **************************************/

/* Document grid layout */
.loan-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Document card styling */
.loan-document-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease;
}

.loan-document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loan-document-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 90, 160, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.loan-document-icon .dashicons {
    font-size: 30px;
    color: #1e5aa0;
    width: 30px;
    height: 30px;
}

.loan-document-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.loan-document-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.loan-document-source {
    font-size: 11px;
    color: #888;
    background-color: rgba(30, 90, 160, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-document-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Document action buttons */
.document-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.document-button-primary {
    background-color: #1e5aa0;
    color: white;
    border: 1px solid #1e5aa0;
}

.document-button-primary:hover {
    background-color: #174a84;
}

.document-button-secondary {
    background-color: white;
    color: #1e5aa0;
    border: 1px solid #1e5aa0;
}

.document-button-secondary:hover {
    background-color: rgba(30, 90, 160, 0.05);
}

/* Document categories section */
.document-category {
    margin-bottom: 30px;
}

.document-category-title {
    font-size: 18px;
    color: #1e5aa0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/**************************************
 * SHARED BUTTON STYLES
 **************************************/

/* Button row */
.loan-dashboard-button-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Main button styles */
.loan-dashboard-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #1e5aa0;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: 0 2px 5px rgba(30, 90, 160, 0.2);
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.loan-dashboard-button:hover {
    background-color: #174a84; /* Darker blue on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 90, 160, 0.3);
}

.loan-dashboard-button-secondary {
    background-color: white;
    color: #1e5aa0;
    border: 1px solid #1e5aa0;
    box-shadow: none;
}

.loan-dashboard-button-secondary:hover {
    background-color: rgba(30, 90, 160, 0.05);
    color: #1e5aa0;
}

.loan-dashboard-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

/**************************************
 * INSURANCE TAB STYLES
 **************************************/

/* Info boxes */
.loan-dashboard-info-box {
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.loan-dashboard-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.loan-dashboard-policy-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
}

.loan-dashboard-policy-item {
    font-size: 14px;
    line-height: 1.4;
}

/**************************************
 * ESCROW TAB STYLES
 **************************************/

/* Escrow account */
.loan-dashboard-escrow-balance {
    text-align: center;
    margin-bottom: 30px;
    background-color: rgba(30, 90, 160, 0.05);
    padding: 25px;
    border-radius: 10px;
}

.loan-dashboard-big-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.loan-dashboard-escrow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loan-dashboard-escrow-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loan-dashboard-escrow-label {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.loan-dashboard-escrow-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/**************************************
 * PROFILE TAB STYLES
 **************************************/

/* Profile Card Layout */
.loan-dashboard-profile-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loan-dashboard-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.profile-card-header {
    background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
}

.profile-card-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.profile-card-icon .dashicons {
    font-size: 24px;
    color: white;
    width: 24px;
    height: 24px;
}

.profile-card-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.profile-card-title p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.profile-card-content {
    padding: 25px;
}

/* Profile page grid within cards */
.loan-dashboard-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
}

.loan-dashboard-profile-field {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.loan-dashboard-profile-field:hover {
    background-color: #f1f3f5;
    border-left-color: var(--primary-color);
}

.loan-dashboard-profile-label {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.loan-dashboard-profile-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.loan-dashboard-profile-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.loan-dashboard-profile-value a:hover {
    text-decoration: underline;
}

/* Security actions specific styling */
.profile-security-actions {
    text-align: center;
}

.profile-security-actions .loan-dashboard-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.profile-security-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.profile-security-note {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    font-style: italic;
}

.loan-dashboard-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.loan-dashboard-edit-link:hover {
    opacity: 1;
}

.loan-dashboard-preferences {
    margin-top: 40px;
}

.loan-dashboard-preferences-list {
    margin-top: 20px;
}

.loan-dashboard-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-dashboard-preference-item:last-child {
    border-bottom: none;
}

.loan-dashboard-preference-toggle {
    position: relative;
}

.loan-dashboard-preference-toggle input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.loan-dashboard-preference-toggle label {
    display: block;
    width: 44px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.loan-dashboard-preference-toggle label:after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.2s ease;
}

.loan-dashboard-preference-toggle input[type="checkbox"]:checked + label {
    background-color: var(--primary-color);
}

.loan-dashboard-preference-toggle input[type="checkbox"]:checked + label:after {
    left: 24px;
}

/**************************************
 * SECURITY TAB STYLES
 **************************************/

/* Security page */
.loan-dashboard-security-section {
    margin-bottom: 40px;
}

.loan-dashboard-security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.loan-dashboard-security-value {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0;
}

.loan-dashboard-security-meta {
    font-size: 13px;
    color: var(--light-text);
}

.loan-dashboard-login-history {
    margin-top: 20px;
}

.loan-dashboard-login-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-dashboard-login-date {
    font-weight: 500;
    margin-bottom: 5px;
}

.loan-dashboard-login-location {
    font-size: 13px;
    color: var(--light-text);
}

.loan-dashboard-login-status {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.loan-dashboard-login-current {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.loan-dashboard-login-failed {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

/**************************************
 * 2FA TAB STYLES
 **************************************/

/* 2FA page */
.loan-dashboard-2fa-status {
    display: flex;
    align-items: center;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.loan-dashboard-2fa-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(39, 174, 96, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.loan-dashboard-2fa-icon .dashicons {
    font-size: 24px;
    color: var(--success-color);
}

.loan-dashboard-2fa-message h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--success-color);
}

.loan-dashboard-2fa-message p {
    margin: 0;
}

.loan-dashboard-2fa-methods {
    margin-bottom: 40px;
}

.loan-dashboard-2fa-method-list {
    margin-top: 20px;
}

.loan-dashboard-2fa-method-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.loan-dashboard-2fa-method-item.active {
    border-left: 4px solid var(--success-color);
}

.loan-dashboard-2fa-method-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.loan-dashboard-2fa-method-icon .dashicons {
    color: var(--primary-color);
}

.loan-dashboard-2fa-method-info {
    flex: 1;
}

.loan-dashboard-2fa-method-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.loan-dashboard-2fa-method-details {
    font-size: 13px;
    color: var(--light-text);
}

.loan-dashboard-2fa-method-status {
    color: var(--success-color);
    font-weight: 500;
    font-size: 14px;
}

/**************************************
 * ENHANCED COMPLIANCE TAB STYLES
 **************************************/

/* Enhanced Compliance Layout */
.enhanced-compliance-content {
    padding: 0;
}

/* Success Message */
.compliance-success-message {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.compliance-success-message .dashicons {
    font-size: 20px;
}

/* Compliance Sections */
.compliance-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.compliance-section-header {
    background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    color: white;
    padding: 25px;
}

.compliance-section-header h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.compliance-section-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

/* Legal Documents Grid */
.legal-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 25px;
}

.legal-document-card {
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.legal-document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.legal-document-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #174a84 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.legal-document-icon .dashicons {
    color: white;
    font-size: 24px;
}

.legal-document-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.legal-document-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.4;
}

.legal-document-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-document-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.legal-document-button:hover {
    background: #174a84;
    transform: translateY(-1px);
}

.legal-document-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.legal-document-button.secondary:hover {
    background: rgba(30, 90, 160, 0.05);
}

/* Preferences Section */
.preferences-section .compliance-section-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.preference-category {
    padding: 25px;
    border-bottom: 1px solid #e1e5e9;
}

.preference-category:last-child {
    border-bottom: none;
}

.preference-category-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.preference-category-header p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--light-text);
}

.preference-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.preference-item:hover {
    background: #f1f3f5;
    border-left-color: var(--primary-color);
}

.preference-item.required {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
}

.preference-info {
    flex: 1;
    margin-right: 20px;
}

.preference-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.preference-description {
    font-size: 13px;
    color: var(--light-text);
    line-height: 1.4;
}

.preference-control {
    flex-shrink: 0;
}

/* Custom Toggle Switch */
.preference-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.preference-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.preference-toggle input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.preference-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.preference-toggle input:disabled + .toggle-slider {
    background-color: #e74c3c;
    cursor: not-allowed;
}

/* Form Actions */
.preference-form-actions {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.compliance-save-button,
.compliance-reset-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compliance-save-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.compliance-save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.compliance-reset-button {
    background: white;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
}

.compliance-reset-button:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Status Overview */
.compliance-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 25px;
}

.status-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
}

.status-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #174a84 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.status-icon .dashicons {
    color: white;
    font-size: 28px;
}

.status-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.status-value {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.status-value.complete {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-value.configured {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-value.active {
    background: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
}

.status-value.compliant {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.status-content p {
    margin: 0;
    font-size: 13px;
    color: var(--light-text);
}

/* Data Rights Section */
.data-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 25px;
}

.data-right-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e1e5e9;
}

.data-right-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.data-right-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.data-right-icon .dashicons {
    color: white;
    font-size: 24px;
}

.data-right-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.data-right-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.4;
}

.data-right-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.data-right-button:hover {
    background: #174a84;
    transform: translateY(-1px);
}

.data-right-button.warning {
    background: #e74c3c;
}

.data-right-button.warning:hover {
    background: #c0392b;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loading-spinner .dashicons {
    font-size: 32px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #333;
}

/**************************************
 * COMPLIANCE TAB STYLES (LEGACY)
 **************************************/

/* Compliance */
.loan-dashboard-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loan-dashboard-document-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.loan-dashboard-document-card:hover {
    transform: translateY(-3px);
}

.loan-dashboard-document-card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 90, 160, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.loan-dashboard-document-card-icon .dashicons {
    font-size: 30px;
    color: var(--primary-color);
}

.loan-dashboard-document-card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.loan-dashboard-consent-items {
    margin-top: 20px;
}

.loan-dashboard-consent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-dashboard-consent-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.loan-dashboard-consent-description {
    font-size: 13px;
    color: var(--light-text);
}

.loan-dashboard-consent-status {
    font-size: 13px;
    color: var(--success-color);
    display: flex;
    align-items: center;
}

.loan-dashboard-consent-status .dashicons {
    margin-right: 5px;
}

.loan-dashboard-consent-declined {
    color: var(--light-text);
}

/**************************************
 * SUPPORT TAB STYLES
 **************************************/

/* Support page */
.loan-dashboard-support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.loan-dashboard-support-option {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease;
}

.loan-dashboard-support-option:hover {
    transform: translateY(-5px);
}

.loan-dashboard-support-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 90, 160, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.loan-dashboard-support-icon .dashicons {
    font-size: 35px;
    color: var(--primary-color);
}

.loan-dashboard-support-option h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.loan-dashboard-support-contact {
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.loan-dashboard-support-contact-method {
    margin-bottom: 8px;
}

.loan-dashboard-chat-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    margin: 15px 0;
    font-size: 13px;
}

.loan-dashboard-kb-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.loan-dashboard-kb-topic {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.loan-dashboard-kb-topic:hover {
    background-color: rgba(30, 90, 160, 0.1);
}

.loan-dashboard-recent-tickets {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.loan-dashboard-ticket-list {
    margin-top: 20px;
}

.loan-dashboard-ticket-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.loan-dashboard-ticket-item:last-child {
    border-bottom: none;
}

.loan-dashboard-ticket-number {
    width: 80px;
    font-family: monospace;
    font-weight: 600;
}

.loan-dashboard-ticket-subject {
    flex: 1;
    font-weight: 500;
}

.loan-dashboard-ticket-date {
    width: 120px;
    font-size: 13px;
    color: var(--light-text);
}

.loan-dashboard-ticket-status {
    width: 100px;
    font-size: 13px;
    border-radius: 20px;
    padding: 3px 10px;
    text-align: center;
}

.loan-dashboard-ticket-resolved {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.loan-dashboard-ticket-open {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.loan-dashboard-ticket-action {
    width: 40px;
    text-align: center;
}

.loan-dashboard-view-ticket {
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.loan-dashboard-view-ticket:hover {
    opacity: 1;
}

/**************************************
 * ENHANCED FINANCIAL ANALYSIS STYLES
 **************************************/

/* Financial Analysis Layout */
.financial-analysis-content {
    padding: 0;
}

/* Financial Overview Cards */
.financial-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.financial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--primary-color);
}

.financial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.financial-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.revenue-card .financial-card-icon {
    background: rgba(39, 174, 96, 0.1);
}

.profit-card .financial-card-icon {
    background: rgba(52, 152, 219, 0.1);
}

.expenses-card .financial-card-icon {
    background: rgba(230, 126, 34, 0.1);
}

.payment-card .financial-card-icon {
    background: rgba(142, 68, 173, 0.1);
}

.financial-card-icon .dashicons {
    font-size: 28px;
    color: var(--primary-color);
}

.financial-card-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.financial-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.financial-subtitle {
    font-size: 12px;
    color: var(--light-text);
}

/* Financial Analysis Grid */
.financial-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Analysis Cards */
.analysis-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.analysis-card:hover {
    transform: translateY(-2px);
}

.analysis-card-header {
    background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    color: white;
    padding: 20px;
}

.analysis-card-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-card-content {
    padding: 25px;
}

/* Financial Ratios Styles */
.ratio-item {
    margin-bottom: 20px;
}

.ratio-item:last-child {
    margin-bottom: 0;
}

.ratio-label {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.ratio-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ratio-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.risk-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.risk-low {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.risk-medium {
    background: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.risk-high {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.ratio-bar {
    width: 100%;
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #f39c12 50%, #e74c3c 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Cash Flow Styles */
.cashflow-breakdown {
    space-y: 15px;
}

.cashflow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cashflow-item.positive {
    background: rgba(39, 174, 96, 0.05);
    border-left: 4px solid #27ae60;
}

.cashflow-item.negative {
    background: rgba(231, 76, 60, 0.05);
    border-left: 4px solid #e74c3c;
}

.cashflow-item.neutral {
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid #3498db;
}

.cashflow-item.result {
    background: rgba(142, 68, 173, 0.05);
    border-left: 4px solid #8e44ad;
    font-weight: 600;
}

.cashflow-label {
    font-size: 14px;
    color: var(--light-text);
}

.cashflow-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Business Health Score */
.health-score-display {
    text-align: center;
    margin-bottom: 25px;
}

.health-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #e74c3c 0deg 72deg,
        #f39c12 72deg 144deg,
        #f1c40f 144deg 216deg,
        #2ecc71 216deg 288deg,
        #27ae60 288deg 360deg
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.health-score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

.score-grade {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 1;
}

.health-status {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.health-factors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.health-factor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.factor-label {
    font-size: 13px;
    color: var(--light-text);
}

.factor-status {
    font-size: 16px;
    font-weight: 600;
}

.factor-status.good {
    color: #27ae60;
}

.factor-status.fair {
    color: #f39c12;
}

.factor-status.poor {
    color: #e74c3c;
}

/* Chart Tabs */
.chart-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.chart-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--light-text);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.chart-tab:hover {
    color: var(--primary-color);
}

.chart-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.chart-container {
    display: none;
}

.chart-container.active {
    display: block;
}

/* Loan Summary Card */
.loan-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 30px;
}

.loan-summary-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
}

.loan-summary-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loan-summary-content {
    padding: 25px;
}

.loan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.summary-label {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 5px;
    font-weight: 500;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/**************************************
 * RESPONSIVE STYLES
 **************************************/

/* ================================
 * ENHANCED MOBILE RESPONSIVE DESIGN
 * ================================ */

/* Tablet Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .loan-dashboard-policy-details,
    .loan-dashboard-escrow-grid,
    .loan-dashboard-support-options,
    .financial-overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .loan-dashboard-profile-grid,
    .financial-analysis-grid,
    .legal-documents-grid,
    .compliance-status-grid,
    .data-rights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .loan-dashboard-document-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Tablet-specific component adjustments */
    .profile-card-content {
        padding: 22px;
    }
    
    .analysis-card-content {
        padding: 22px;
    }
    
    .chart-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .chart-tab {
        flex: 1;
        min-width: calc(33.333% - 6px);
    }
}

/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
    /* Grid Layout Adjustments */
    .loan-dashboard-policy-details,
    .loan-dashboard-escrow-grid,
    .loan-dashboard-profile-grid,
    .loan-dashboard-document-grid,
    .loan-dashboard-support-options,
    .financial-overview-cards,
    .financial-analysis-grid,
    .loan-summary-grid,
    .legal-documents-grid,
    .compliance-status-grid,
    .data-rights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Enhanced Profile Card Mobile Layout */
    .loan-dashboard-profile-card {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .profile-card-header {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
        background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    }
    
    .profile-card-icon {
        margin-right: 0;
        margin-bottom: 12px;
        width: 45px;
        height: 45px;
    }
    
    .profile-card-title h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .profile-card-title p {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .profile-card-content {
        padding: 20px 15px;
    }
    
    .loan-dashboard-profile-field {
        padding: 15px 12px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: #f8f9fa;
        border-left: 3px solid var(--primary-color);
    }
    
    .loan-dashboard-profile-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        color: var(--light-text);
    }
    
    .loan-dashboard-profile-value {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.4;
    }
    
    /* Enhanced Financial Analysis Mobile Layout */
    .financial-card {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border-left: 4px solid var(--primary-color);
    }
    
    .financial-card-icon {
        margin-right: 0;
        margin-bottom: 15px;
        width: 55px;
        height: 55px;
    }
    
    .financial-card-icon .dashicons {
        font-size: 26px;
    }
    
    .financial-card-content h4 {
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .financial-value {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
    }
    
    .financial-subtitle {
        font-size: 12px;
        opacity: 0.8;
    }
    
    .analysis-card {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .analysis-card-header {
        padding: 18px 15px;
        background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    }
    
    .analysis-card-header h3 {
        font-size: 17px;
        margin: 0;
    }
    
    .analysis-card-content {
        padding: 20px 15px;
    }
    
    /* Chart Mobile Enhancements */
    .chart-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
        border-bottom: none;
    }
    
    .chart-tab {
        flex: 1;
        min-width: calc(50% - 4px);
        margin-bottom: 0;
        text-align: center;
        padding: 12px 8px;
        font-size: 13px;
        border-radius: 8px;
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.1);
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .chart-tab.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 600;
    }
    
    .chart-tab:hover {
        background: rgba(30, 90, 160, 0.1);
        border-color: var(--primary-color);
    }
    
    .chart-container {
        padding: 15px 10px;
        background: white;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }
    
    /* Health Score Mobile Layout */
    .health-factors {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .health-factor {
        padding: 15px;
        border-radius: 10px;
        background: #f8f9fa;
        border-left: 3px solid var(--primary-color);
    }
    
    .factor-label {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .factor-status {
        font-size: 16px;
        font-weight: 600;
        margin-top: 5px;
    }
    
    /* Enhanced Document Grid Mobile Layout */
    .loan-document-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border-left: 4px solid var(--primary-color);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .loan-document-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .loan-document-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        background: rgba(30, 90, 160, 0.1);
        border-radius: 50%;
    }
    
    .loan-document-icon .dashicons {
        font-size: 24px;
        color: var(--primary-color);
    }
    
    .loan-document-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .loan-document-date,
    .loan-document-source {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .loan-document-actions {
        gap: 10px;
        margin-top: 15px;
        flex-direction: column;
    }
    
    .document-button {
        width: 100%;
        padding: 12px 15px;
        text-align: center;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    /* Enhanced Compliance Mobile Layout */
    .compliance-section {
        margin-bottom: 25px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .compliance-section-header {
        padding: 20px 15px;
        background: linear-gradient(135deg, #1e5aa0 0%, #174a84 100%);
    }
    
    .compliance-section-header h3 {
        font-size: 18px;
        margin: 0 0 8px 0;
    }
    
    .compliance-section-header p {
        font-size: 14px;
        margin: 0;
        opacity: 0.9;
    }
    
    .legal-document-card {
        padding: 18px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease;
    }
    
    .legal-document-card:hover {
        background: white;
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .legal-document-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .legal-document-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .legal-document-content p {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .legal-document-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-document-button {
        width: 100%;
        padding: 12px 15px;
        text-align: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 500;
    }
    
    /* Preference Items Mobile Layout */
    .preference-item {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 15px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: #f8f9fa;
        border-left: 4px solid transparent;
        transition: all 0.2s ease;
    }
    
    .preference-item:hover {
        background: #f1f3f5;
        border-left-color: var(--primary-color);
    }
    
    .preference-item.required {
        border-left-color: #e74c3c;
        background: rgba(231, 76, 60, 0.03);
    }
    
    .preference-info {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .preference-title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .preference-description {
        font-size: 13px;
        line-height: 1.5;
        color: var(--light-text);
    }
    
    .preference-control {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .preference-toggle {
        width: 55px;
        height: 28px;
    }
    
    .toggle-slider {
        border-radius: 28px;
    }
    
    .toggle-slider:before {
        width: 22px;
        height: 22px;
        left: 3px;
        bottom: 3px;
    }
    
    .preference-toggle input:checked + .toggle-slider:before {
        transform: translateX(27px);
    }
    
    /* Status Cards Mobile Layout */
    .compliance-status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .status-card {
        padding: 18px 15px;
        border-radius: 12px;
        background: #f8f9fa;
        border-left: 4px solid var(--primary-color);
        text-align: center;
        transition: transform 0.2s ease;
    }
    
    .status-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .status-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 12px;
    }
    
    .status-icon .dashicons {
        font-size: 24px;
    }
    
    .status-content h4 {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .status-value {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    
    .status-content p {
        font-size: 11px;
        margin: 0;
    }
    
    /* Data Rights Mobile Layout */
    .data-right-item {
        padding: 18px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid rgba(0, 0, 0, 0.08);
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .data-right-item:hover {
        background: white;
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .data-right-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .data-right-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .data-right-content p {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .data-right-button {
        width: 100%;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    /* Enhanced Security & Support Mobile Layout */
    .loan-dashboard-security-item,
    .loan-dashboard-2fa-method-item,
    .loan-dashboard-ticket-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        border-left: 4px solid var(--primary-color);
        transition: all 0.2s ease;
    }
    
    .loan-dashboard-security-item:hover,
    .loan-dashboard-2fa-method-item:hover,
    .loan-dashboard-ticket-item:hover {
        background: #f1f3f5;
        transform: translateY(-1px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .loan-dashboard-security-info,
    .loan-dashboard-2fa-method-info,
    .loan-dashboard-ticket-info {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .loan-dashboard-security-label,
    .loan-dashboard-2fa-method-name,
    .loan-dashboard-ticket-subject {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .loan-dashboard-security-value,
    .loan-dashboard-2fa-method-details,
    .loan-dashboard-ticket-number {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .loan-dashboard-security-meta,
    .loan-dashboard-ticket-date {
        font-size: 12px;
        color: var(--light-text);
    }
    
    .loan-dashboard-security-action,
    .loan-dashboard-2fa-method-status,
    .loan-dashboard-2fa-method-button,
    .loan-dashboard-consent-status,
    .loan-dashboard-ticket-status,
    .loan-dashboard-ticket-action {
        margin-top: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .loan-dashboard-button-small {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
        font-weight: 500;
    }
    
    /* Support Options Mobile Layout */
    .loan-dashboard-support-option {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border-left: 4px solid var(--primary-color);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        text-align: center;
    }
    
    .loan-dashboard-support-option:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .loan-dashboard-support-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .loan-dashboard-support-icon .dashicons {
        font-size: 30px;
    }
    
    .loan-dashboard-support-option h3 {
        font-size: 18px;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .loan-dashboard-support-contact {
        margin: 15px 0;
        padding: 12px;
        text-align: left;
        border-radius: 8px;
    }
    
    .loan-dashboard-kb-topics {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .loan-dashboard-kb-topic {
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 13px;
        text-align: center;
        text-decoration: none;
        background: #f8f9fa;
        color: var(--primary-color);
        border: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .loan-dashboard-kb-topic:hover {
        background: rgba(30, 90, 160, 0.1);
        border-color: var(--primary-color);
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Further reduce spacing and sizes for small screens */
    .profile-card-header,
    .analysis-card-header,
    .compliance-section-header {
        padding: 15px 12px;
    }
    
    .profile-card-content,
    .analysis-card-content {
        padding: 18px 12px;
    }
    
    .financial-card {
        padding: 15px 12px;
        margin-bottom: 12px;
    }
    
    .chart-tab {
        padding: 10px 6px;
        font-size: 12px;
        min-width: calc(50% - 4px);
    }
    
    .chart-container {
        padding: 12px 8px;
    }
    
    .compliance-status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .status-card {
        padding: 15px 12px;
    }
    
    .loan-dashboard-security-item,
    .loan-dashboard-2fa-method-item,
    .loan-dashboard-ticket-item,
    .loan-dashboard-support-option {
        padding: 15px 12px;
    }
    
    .loan-dashboard-profile-field,
    .preference-item,
    .data-right-item,
    .legal-document-card,
    .loan-document-card {
        padding: 15px 12px;
    }
    
    .document-button,
    .legal-document-button,
    .data-right-button,
    .loan-dashboard-button-small {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Extra Small Mobile Devices (320px and below) */
@media (max-width: 320px) {
    /* Minimize everything for very small screens */
    .profile-card-header,
    .analysis-card-header,
    .compliance-section-header {
        padding: 12px 10px;
    }
    
    .profile-card-content,
    .analysis-card-content {
        padding: 15px 10px;
    }
    
    .financial-card {
        padding: 12px 10px;
    }
    
    .financial-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .financial-value {
        font-size: 18px;
    }
    
    .chart-tab {
        padding: 8px 5px;
        font-size: 11px;
    }
    
    .loan-dashboard-profile-field,
    .preference-item,
    .data-right-item,
    .legal-document-card,
    .loan-document-card {
        padding: 12px 10px;
    }
    
    .document-button,
    .legal-document-button,
    .data-right-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}