/*
 * Quotify Client Theme CSS
 * Inherits from Perfex theme
 */

/* Import base perfex theme styles */
@import url('../../perfex/css/style.css');

/* Add your custom styles below this line */

/* Example: Custom color overrides
.navbar {
    background-color: #your-custom-color;
}
*/

/* Companies Directory - Add spacing between header and companies list */
.quotify-directory-grid {
    margin-top: 30px;
}

/* Company Dashboard Styles */
.quotify-company-dashboard {
    margin-top: 20px;
}

/* Company Tabs */
.quotify-company-dashboard-tabs {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
    margin-bottom: 24px;
}

.quotify-company-dashboard-tabs-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.quotify-company-dashboard-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.quotify-company-dashboard-tab:hover {
    background: #fff;
    border-color: #cbd5e1;
    text-decoration: none;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.quotify-company-dashboard-tab--active {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quotify-company-dashboard-tab--active .quotify-company-dashboard-tab-name {
    color: #667eea;
    font-weight: 600;
}

.quotify-company-dashboard-tab-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.quotify-company-dashboard-tab-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quotify-company-dashboard-tab-initial {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.quotify-company-dashboard-tab-content {
    flex: 1;
    min-width: 0;
}

.quotify-company-dashboard-tab-name {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quotify-company-dashboard-tab-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quotify-company-dashboard-tab-role {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.quotify-company-dashboard-tab-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quotify-company-dashboard-tab-status--pending {
    background: #fef9c3;
    color: #92400e;
}

@media (max-width: 768px) {
    .quotify-company-dashboard-tabs-list {
        flex-direction: column;
    }
    
    .quotify-company-dashboard-tab {
        max-width: 100%;
    }
}

/* Empty State */
.quotify-company-dashboard-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.quotify-company-dashboard-empty-card {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
    max-width: 500px;
}

.quotify-company-dashboard-empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.quotify-company-dashboard-empty-card h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.quotify-company-dashboard-empty-card p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 15px;
}

.quotify-company-dashboard-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dashboard Header */
.quotify-company-dashboard-header {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
    margin-bottom: 24px;
}

.quotify-company-dashboard-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quotify-company-dashboard-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.quotify-company-dashboard-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quotify-company-dashboard-initial {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.quotify-company-dashboard-header-text {
    flex: 1;
    min-width: 200px;
}

.quotify-company-dashboard-header-text h1 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.quotify-company-dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.quotify-company-dashboard-meta-item {
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quotify-company-dashboard-meta-item i {
    color: #94a3b8;
}

.quotify-company-dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.quotify-company-dashboard-status-badge--active {
    background: #dcfce7;
    color: #047857;
}

.quotify-company-dashboard-status-badge--pending {
    background: #fef9c3;
    color: #92400e;
}

.quotify-company-dashboard-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Stats Cards */
.quotify-company-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.quotify-company-dashboard-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quotify-company-dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}

.quotify-company-dashboard-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.quotify-company-dashboard-stat-icon--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.quotify-company-dashboard-stat-icon--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.quotify-company-dashboard-stat-icon--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quotify-company-dashboard-stat-content {
    flex: 1;
}

.quotify-company-dashboard-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.quotify-company-dashboard-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Quick Actions */
.quotify-company-dashboard-actions {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
    margin-bottom: 32px;
}

.quotify-company-dashboard-actions h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.quotify-company-dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.quotify-company-dashboard-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.quotify-company-dashboard-action-card:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    text-decoration: none;
}

.quotify-company-dashboard-action-card i {
    font-size: 28px;
    color: #667eea;
}

.quotify-company-dashboard-action-card:hover i {
    transform: scale(1.1);
}

.quotify-company-dashboard-action-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

/* Recent Activity */
.quotify-company-dashboard-activity {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.1);
}

.quotify-company-dashboard-activity h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px 0;
}

.quotify-company-dashboard-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quotify-company-dashboard-activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.quotify-company-dashboard-activity-item:hover {
    background: #f1f5f9;
}

.quotify-company-dashboard-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
}

.quotify-company-dashboard-activity-icon--warning {
    background: #fef3c7;
    color: #d97706;
}

.quotify-company-dashboard-activity-icon--info {
    background: #dbeafe;
    color: #2563eb;
}

.quotify-company-dashboard-activity-icon--success {
    background: #d1fae5;
    color: #059669;
}

.quotify-company-dashboard-activity-content {
    flex: 1;
}

.quotify-company-dashboard-activity-message {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 4px;
}

.quotify-company-dashboard-activity-date {
    font-size: 12px;
    color: #94a3b8;
}

.quotify-company-dashboard-activity-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quotify-company-dashboard-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quotify-company-dashboard-header-actions {
        width: 100%;
    }
    
    .quotify-company-dashboard-header-actions .btn {
        flex: 1;
    }
    
    .quotify-company-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quotify-company-dashboard-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.navbar-default .navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-default .navbar-nav > li.customers-nav-item-wordpress-login > a {
    line-height: 2 !important;
}

/* Notification bell wrapper */
.customers-notification-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customers-notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25);
}

.customers-notification-badge:empty {
    display: none;
}

.customers-notification-badge::-moz-selection,
.customers-notification-badge::selection {
    background: transparent;
}

/* Notification dropdown styling */
.customers-nav-item-notifications .dropdown-menu.notifications {
    padding: 0;
    border: none;
    border-radius: 16px;
    min-width: 360px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f7f9ff 100%);
}

.customers-nav-item-notifications .dropdown-menu.notifications .dropdown-header {
    padding: 18px 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    color: #757b8a;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

.customers-nav-item-notifications .dropdown-menu.notifications .customers-notifications-mark {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fa6b2;
    transition: color .2s ease;
}

.customers-nav-item-notifications .dropdown-menu.notifications .customers-notifications-mark:hover {
    color: #4338ca;
    text-decoration: none;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-wrapper a {
    display: block;
    padding: 0 10px;
    color: #111827;
    transition: transform .2s ease, background .2s ease;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-wrapper a:hover {
    background: rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-outline-danger,
.profile-invite-actions .btn.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #dc2626;
    background: rgba(239, 68, 68, 0.05);
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-outline-danger:hover,
.profile-invite-actions .btn.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-primary {
    background: linear-gradient(90deg, #2563eb 0%, #4338ca 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(67, 56, 202, 0.25);
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #3730a3 100%);
    color: #ffffff;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-actions .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.55);
}

.profile-invite-actions .btn {
    min-width: 120px;
    border-radius: 999px;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-title {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
    font-size: 15px;
}

.customers-nav-item-notifications .dropdown-menu.notifications .notification-date {
    font-size: 13px;
    color: #9ca3af;
}

.customers-nav-item-notifications .dropdown-menu.notifications .divider {
    margin: 0;
    border-color: rgba(226, 232, 240, 0.8);
}

.customers-nav-item-notifications .dropdown-menu.notifications .tw-text-center {
    background: rgba(248, 250, 252, 0.8);
    padding: 18px 22px;
}

.customers-nav-item-notifications .dropdown-menu.notifications .btn.btn-default.btn-sm {
    width: 100%;
    border-radius: 12px;
    padding: 12px 0;
    border: none;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.customers-nav-item-notifications .dropdown-menu.notifications .btn.btn-default.btn-sm:hover {
    background: rgba(99, 102, 241, 0.22);
}

/* ============================================
   CLIENT DASHBOARD ENHANCEMENTS
   ============================================ */

/* Dashboard Section Titles */
.dashboard-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-section-title i {
    color: #667eea;
    margin-right: 10px;
    font-size: 18px;
}

/* Empty States */
.dashboard-empty-state {
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.dashboard-empty-state-small {
    padding: 32px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

/* Dashboard Stat Cards */
.dashboard-stat-card {
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dashboard-stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.dashboard-stat-header {
    margin-bottom: 12px;
}

.dashboard-stat-header a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-stat-header i {
    font-size: 16px;
    margin-right: 6px;
}

.dashboard-stat-numbers {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.stat-current {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.stat-total {
    font-size: 16px;
    color: #64748b;
    margin-left: 4px;
}

.dashboard-stat-progress {
    margin-top: 8px;
}

.dashboard-stat-progress .progress {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.dashboard-stat-progress .progress-bar {
    border-radius: 999px;
    transition: width 0.6s ease;
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-bottom: 32px;
}

.dashboard-quick-actions .panel_s {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    text-decoration: none;
    color: #0f172a;
}

.quick-action-card:hover::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-card:hover .quick-action-icon-primary {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quick-action-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quick-action-card:hover .quick-action-icon-success {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.quick-action-icon-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.quick-action-card:hover .quick-action-icon-info {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.quick-action-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.quick-action-card:hover .quick-action-icon-warning {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.quick-action-content {
    width: 100%;
}

.quick-action-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #0f172a;
    line-height: 1.4;
}

.quick-action-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Attention Needed */
.dashboard-attention-needed {
    margin-bottom: 32px;
}

.attention-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attention-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.attention-item:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: translateX(4px);
}

.attention-item-danger {
    border-left-color: #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, #fff 20%);
}

.attention-item-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(to right, #fffbeb 0%, #fff 20%);
}

.attention-item-info {
    border-left-color: #3b82f6;
    background: linear-gradient(to right, #eff6ff 0%, #fff 20%);
}

.attention-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.attention-item-danger .attention-icon {
    background: #fee2e2;
    color: #ef4444;
}

.attention-item-warning .attention-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.attention-item-info .attention-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.attention-content {
    flex: 1;
}

.attention-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.attention-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.attention-action {
    margin-left: 16px;
}

/* Financial Overview */
.dashboard-financial-overview {
    margin-bottom: 32px;
}

.financial-card {
    display: flex;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    height: 100%;
}

.financial-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.financial-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-right: 20px;
    flex-shrink: 0;
}

.financial-card-primary .financial-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.financial-card-success .financial-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.financial-card-danger .financial-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.financial-card-info .financial-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.financial-content {
    flex: 1;
}

.financial-content h5 {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.financial-label {
    font-size: 13px;
    color: #64748b;
}

.financial-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500;
}

.financial-link:hover {
    color: #4338ca;
    text-decoration: none;
}

/* Recent Activity */
.dashboard-recent-activity {
    margin-bottom: 32px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateX(4px);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
    color: #fff;
    background: #e2e8f0;
}

.activity-icon.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.activity-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.activity-icon.bg-gray {
    background: #94a3b8;
    color: #fff;
}

.activity-content {
    flex: 1;
}

.activity-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    text-decoration: none;
}

.activity-title:hover {
    color: #667eea;
    text-decoration: none;
}

.activity-description {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.activity-date {
    font-size: 12px;
    color: #94a3b8;
}

/* Contact Cards Enhancement */
.contact-item {
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0 !important;
}

.contact-item:hover {
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: #f8fafc !important;
}

/* Panel Enhancements */
.panel_s {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

.panel_s:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.panel_s .panel-body {
    padding: 24px;
}

/* Progress Bar Animations */
@keyframes progressBar {
    from {
        width: 0%;
    }
}

.dashboard-stat-progress .progress-bar[data-percent] {
    animation: progressBar 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stat-card {
        margin-bottom: 16px;
    }
    
    .quick-action-card {
        padding: 24px 16px;
    }
    
    .quick-action-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .attention-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .attention-action {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .attention-action .btn {
        width: 100%;
    }
    
    .financial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .financial-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .activity-item {
        flex-direction: column;
    }
    
    .activity-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* ============================================
   QUOTIFY COMPANIES - ENHANCED CLIENT THEME
   Advanced features based on feature suggestions
   ============================================ */

/* Enhanced Directory View - Card Improvements */
.quotify-directory-card {
    position: relative;
    overflow: hidden;
}

.quotify-directory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s ease;
    z-index: 1;
}

.quotify-directory-card:hover::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.quotify-directory-card.is-clickable {
    cursor: pointer;
}

.quotify-directory-card.is-clickable:active {
    transform: translateY(-2px);
}

/* Enhanced Filter Panel */
.quotify-directory-filters {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.quotify-directory-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.quotify-directory-filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.quotify-directory-filters-toggle {
    display: none; /* Hidden on desktop, shown on mobile */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
}

.quotify-directory-filters-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quotify-directory-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quotify-directory-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotify-directory-filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 8px;
}

/* Tag Cloud for Filtering */
.quotify-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quotify-tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quotify-tag-cloud-item:hover {
    background: #eef2ff;
    border-color: #667eea;
    color: #4338ca;
}

.quotify-tag-cloud-item.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.quotify-tag-cloud-item .tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.quotify-tag-cloud-item.active .tag-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Advanced Search with Autocomplete */
.quotify-search-wrapper {
    position: relative;
}

.quotify-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.quotify-search-suggestions.active {
    display: block;
}

.quotify-search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.quotify-search-suggestion-item:last-child {
    border-bottom: none;
}

.quotify-search-suggestion-item:hover {
    background: #f8fafc;
}

.quotify-search-suggestion-item.highlight {
    background: #eef2ff;
}

/* Search Result Highlighting */
.quotify-search-highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    color: #92400e;
}

/* Enhanced Company Profile Sections */
.quotify-company-profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.quotify-company-profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.quotify-company-profile-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quotify-company-profile-section-title i {
    color: #667eea;
}

/* Social Media Links */
.quotify-social-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quotify-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.quotify-social-link:hover {
    background: #fff;
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quotify-social-link i {
    font-size: 18px;
}

.quotify-social-link--linkedin {
    color: #0077b5;
}

.quotify-social-link--twitter {
    color: #1da1f2;
}

.quotify-social-link--facebook {
    color: #1877f2;
}

.quotify-social-link--instagram {
    color: #e4405f;
}

/* Company Milestones Timeline */
.quotify-milestones-timeline {
    position: relative;
    padding-left: 32px;
}

.quotify-milestones-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.quotify-milestone-item {
    position: relative;
    padding-bottom: 32px;
}

.quotify-milestone-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e2e8f0;
}

.quotify-milestone-item:last-child {
    padding-bottom: 0;
}

.quotify-milestone-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.quotify-milestone-content:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.quotify-milestone-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.quotify-milestone-date {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.quotify-milestone-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Document Repository */
.quotify-document-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.quotify-document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #0f172a;
}

.quotify-document-item:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    text-decoration: none;
    color: #0f172a;
    transform: translateY(-2px);
}

.quotify-document-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #eef2ff;
    color: #667eea;
    flex-shrink: 0;
}

.quotify-document-content {
    flex: 1;
    min-width: 0;
}

.quotify-document-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quotify-document-meta {
    font-size: 12px;
    color: #64748b;
}

/* Drag and Drop Logo Upload */
.quotify-logo-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.quotify-logo-upload-zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.quotify-logo-upload-zone.dragover {
    border-color: #667eea;
    background: #eef2ff;
    border-style: solid;
}

.quotify-logo-upload-zone.has-logo {
    border-style: solid;
    border-color: #10b981;
    background: #f0fdf4;
}

.quotify-logo-upload-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.quotify-logo-upload-zone:hover .quotify-logo-upload-icon {
    color: #667eea;
}

.quotify-logo-upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.quotify-logo-upload-hint {
    font-size: 13px;
    color: #64748b;
}

.quotify-logo-preview {
    margin-top: 20px;
    display: inline-block;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.quotify-logo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Activity Feed Enhancements */
.quotify-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quotify-activity-feed-group {
    margin-bottom: 24px;
}

.quotify-activity-feed-group-date {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.quotify-activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.quotify-activity-item:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.quotify-activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.quotify-activity-content {
    flex: 1;
}

.quotify-activity-message {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.5;
}

.quotify-activity-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .quotify-directory-filters-content {
        grid-template-columns: 1fr;
    }
    
    .quotify-directory-filters-toggle {
        display: block;
    }
    
    .quotify-directory-filters-content.collapsed {
        display: none;
    }
    
    .quotify-document-list {
        grid-template-columns: 1fr;
    }
    
    .quotify-social-media-links {
        flex-direction: column;
    }
    
    .quotify-social-link {
        width: 100%;
        justify-content: center;
    }
    
    .quotify-milestones-timeline {
        padding-left: 24px;
    }
    
    .quotify-company-profile-section {
        padding: 20px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .quotify-directory-card,
    .quotify-social-link,
    .quotify-document-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .quotify-directory-card-footer button,
    .quotify-directory-filter-actions button {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Accessibility improvements */
.quotify-directory-card:focus,
.quotify-social-link:focus,
.quotify-document-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.quotify-directory-card:focus:not(:focus-visible),
.quotify-social-link:focus:not(:focus-visible),
.quotify-document-item:focus:not(:focus-visible) {
    outline: none;
}

/* Loading states */
.quotify-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #64748b;
}

.quotify-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty states for new sections */
.quotify-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

.quotify-empty-state-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.quotify-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.quotify-empty-state-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Print styles */
@media print {
    .quotify-directory-filters,
    .quotify-directory-card-footer,
    .quotify-company-profile-section-header .btn {
        display: none;
    }
    
    .quotify-directory-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}