/* ========================================
   🎨 PROFESSIONAL DESIGN - COMPANIES & PIPELINE
   Modern Corporate UI/UX Enhancement
   ======================================== */

/* === MODERN PAGE HEADER === */
.professional-page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 48px 40px;
    border-radius: 16px;
    color: white;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15);
    position: relative;
    overflow: hidden;
}

.professional-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.professional-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.professional-header-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.professional-header-title h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
}

.professional-header-icon {
    background: rgba(255,255,255,0.15);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.professional-header-icon i {
    font-size: 28px;
}

.professional-header-subtitle {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
    margin: 0;
    padding-left: 72px;
}

.professional-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* === PROFESSIONAL BUTTONS === */
.professional-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.professional-btn-primary {
    background: white;
    color: #1e3a8a;
    border-color: white;
}

.professional-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.professional-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.professional-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* === STATS CARDS === */
.professional-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.professional-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professional-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.professional-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.professional-stat-card:hover::before {
    opacity: 1;
}

.professional-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.professional-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.professional-stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.professional-stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.professional-stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.professional-stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.professional-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.professional-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 12px;
}

.professional-stat-trend.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.professional-stat-trend.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* === SEARCH & FILTER BAR === */
.professional-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.professional-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.professional-form-group {
    margin: 0;
}

.professional-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.professional-form-label i {
    margin-right: 6px;
    color: #3b82f6;
}

.professional-input, .professional-select {
    width: 100%;
    padding: 11px 16px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    color: #111827;
}

.professional-input:focus, .professional-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.professional-input::placeholder {
    color: #9ca3af;
}

/* === VIEW TOGGLE === */
.professional-view-toggle {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.professional-view-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.professional-view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.professional-view-btn:hover:not(.active) {
    color: #374151;
}

/* === GRID VIEW === */
.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.professional-grid-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.professional-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: #3b82f6;
}

.professional-grid-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.professional-grid-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.professional-grid-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.professional-grid-card-body {
    padding: 20px;
}

.professional-grid-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.professional-grid-card-row:last-child {
    border-bottom: none;
}

.professional-grid-card-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.professional-grid-card-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.professional-grid-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* === TABLE VIEW === */
.professional-table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.professional-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.professional-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.professional-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.professional-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.professional-table tbody tr:hover {
    background: #f8fafc;
}

.professional-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #374151;
}

/* === BOARD VIEW (PIPELINE) === */
.professional-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.professional-board-column {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    min-height: 500px;
}

.professional-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.professional-board-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.professional-board-count {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.professional-board-value {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.professional-board-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.professional-deal-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    cursor: move;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.professional-deal-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.professional-deal-card-header {
    margin-bottom: 12px;
}

.professional-deal-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.professional-deal-company {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.professional-deal-value {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin: 10px 0;
}

.professional-deal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.professional-deal-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
}

/* === BADGES === */
.professional-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.professional-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.professional-badge-warning {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.professional-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.professional-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.professional-badge-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* === ACTION BUTTONS === */
.professional-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.professional-action-btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.professional-action-btn-edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.professional-action-btn-edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.professional-action-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.professional-action-btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.professional-action-btn-view {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.professional-action-btn-view:hover {
    background: rgba(16, 185, 129, 0.2);
}

/* === EMPTY STATE === */
.professional-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.professional-empty-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.professional-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.professional-empty-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .professional-filter-grid {
        grid-template-columns: 1fr;
    }
    
    .professional-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .professional-page-header {
        padding: 32px 24px;
    }
    
    .professional-header-title h1 {
        font-size: 24px;
    }
    
    .professional-header-subtitle {
        padding-left: 0;
    }
    
    .professional-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .professional-grid {
        grid-template-columns: 1fr;
    }
}
