* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Header Styles - Same as other profiles */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
}

.logo-text .diji {
    color: #dc2626;
}

.logo-text .pharma {
    color: #60a5fa;
}

.pill-small {
    width: 30px;
    height: 12px;
    border-radius: 6px;
    display: flex;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pill-half-small {
    flex: 1;
    height: 100%;
}

.pill-half-small.red {
    background: #dc2626;
    border-radius: 6px 0 0 6px;
}

.pill-half-small.blue {
    background: #3b82f6;
    border-radius: 0 6px 6px 0;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc2626;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #334155;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #334155;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f1f5f9;
}

.user-dropdown hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 5px 0;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    color: #1e3a8a;
    font-size: 2.2em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1em;
}

/* Department Info - Sales specific */
.department-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.department-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #10b981;
}

.department-badge i {
    color: #10b981;
    font-size: 1.2em;
}

.status-badge {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

/* Stats Grid - Sales theme with green */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { border-left-color: #10b981; }
.stat-card:nth-child(2) { border-left-color: #3b82f6; }
.stat-card:nth-child(3) { border-left-color: #f59e0b; }
.stat-card:nth-child(4) { border-left-color: #8b5cf6; }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: #10b981; }
.stat-card:nth-child(2) .stat-icon { background: #3b82f6; }
.stat-card:nth-child(3) .stat-icon { background: #f59e0b; }
.stat-card:nth-child(4) .stat-icon { background: #8b5cf6; }

.stat-content h3 {
    font-size: 2.2em;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.stat-content p {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.85em;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
}

.stat-change.positive {
    background: #dcfce7;
    color: #16a34a;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: #1e293b;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.view-all-link {
    color: #10b981;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.view-all-link:hover {
    color: #059669;
}

/* Opportunity List */
.opportunity-list {
    padding: 0 25px 25px;
}

.opportunity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.opportunity-item:last-child {
    border-bottom: none;
}

.opportunity-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
}

.opportunity-item.hot .opportunity-status { background: #ef4444; }
.opportunity-item.warm .opportunity-status { background: #f59e0b; }
.opportunity-item.cold .opportunity-status { background: #3b82f6; }

.opportunity-content {
    flex: 1;
}

.opportunity-content h4 {
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.opportunity-content p {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.opportunity-meta {
    display: flex;
    gap: 15px;
}

.opportunity-meta .amount {
    font-weight: 600;
    color: #10b981;
}

.opportunity-meta .probability {
    color: #64748b;
    font-size: 0.9em;
}

.opportunity-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.opportunity-actions .deadline {
    font-size: 0.85em;
    color: #64748b;
}

/* Activity List */
.activity-list {
    padding: 0 25px 25px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
}

.activity-icon.sale { background: #10b981; }
.activity-icon.meeting { background: #3b82f6; }
.activity-icon.report { background: #f59e0b; }

.activity-content p {
    margin-bottom: 5px;
    color: #334155;
}

.activity-content small {
    color: #64748b;
    font-size: 0.85em;
}

/* Quick Actions */
.quick-actions {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9em;
}

.action-btn i {
    font-size: 1.3em;
}

.action-btn.primary {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.action-btn.primary:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

.action-btn.secondary:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
}

/* Chart Container */
.chart-container {
    padding: 0 25px 25px;
    height: 300px;
}

/* Sales Section */
.sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-filter {
    display: flex;
    gap: 15px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #10b981;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #10b981;
}

.create-opportunity-btn,
.create-customer-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.create-opportunity-btn:hover,
.create-customer-btn:hover {
    background: #059669;
}

/* Sales Pipeline */
.sales-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pipeline-stage {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.stage-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage-header h3 {
    color: #1e293b;
    font-size: 1.1em;
}

.stage-count {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.stage-content {
    padding: 20px;
    min-height: 300px;
}

.opportunity-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.opportunity-card.hot {
    border-left: 4px solid #ef4444;
}

.opportunity-card.warm {
    border-left: 4px solid #f59e0b;
}

.opportunity-card.cold {
    border-left: 4px solid #3b82f6;
}

.opportunity-card.closed {
    border-left: 4px solid #10b981;
}

.opportunity-card h4 {
    color: #1e293b;
    margin-bottom: 5px;
}

.opportunity-card p {
    color: #64748b;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer .amount {
    font-weight: 600;
    color: #10b981;
}

.card-footer .date,
.card-footer .success {
    font-size: 0.85em;
    color: #64748b;
}

.card-footer .success {
    color: #16a34a;
    font-weight: 500;
}

/* Customers Section */
.customers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.customer-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.customer-card.vip { border-left-color: #fbbf24; }
.customer-card.active { border-left-color: #10b981; }
.customer-card.potential { border-left-color: #3b82f6; }

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.customer-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.customer-info h3 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.customer-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.customer-tag.vip {
    background: #fef3c7;
    color: #d97706;
}

.customer-tag.active {
    background: #dcfce7;
    color: #16a34a;
}

.customer-tag.potential {
    background: #dbeafe;
    color: #2563eb;
}

.customer-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: #10b981;
    color: #10b981;
}

.customer-body {
    padding: 25px;
}

.customer-body p {
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-body p i {
    width: 16px;
    color: #10b981;
}

.customer-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.customer-stats .stat {
    text-align: center;
}

.customer-stats .label {
    display: block;
    font-size: 0.8em;
    color: #64748b;
    margin-bottom: 5px;
}

.customer-stats .value {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95em;
}

/* Analytics Section */
.analytics-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.period-select,
.metric-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.period-select:focus,
.metric-select:focus {
    outline: none;
    border-color: #10b981;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Profile Section - Similar to other profiles but with sales theme */
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-avatar-section {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2em;
}

.profile-avatar-section h3 {
    margin-bottom: 5px;
}

.profile-role {
    opacity: 0.9;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat .value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.stat .label {
    font-size: 0.8em;
    opacity: 0.8;
}

.profile-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.tab-btn.active {
    color: #10b981;
    background: #f8fafc;
    border-bottom: 2px solid #10b981;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.profile-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input[readonly],
.form-group select[disabled] {
    background: #f9fafb;
    color: #6b7280;
}

.save-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Reports Section */
.reports-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.generate-report-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.generate-report-btn:hover {
    background: #059669;
}

.report-filters select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.report-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.report-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.report-content {
    flex: 1;
}

.report-content h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.report-content p {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.report-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #64748b;
}

.report-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

/* Notification */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .sales-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .user-actions {
        order: 2;
        margin: 10px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .customers-grid {
        grid-template-columns: 1fr;
    }
    
    .sales-header,
    .customers-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filter {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .sales-pipeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .section-header h1 {
        font-size: 1.8em;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .customer-card {
        margin: 0 5px;
    }
    
    .user-btn span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .opportunity-card {
        margin-bottom: 10px;
    }
}

/* Index Header Styles - Added for new navbar */
.main-header {
    position: relative;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo .diji {
    color: #dc2626;
}

.nav-logo .pharma {
    color: #3b82f6;
}

.pill-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-nav .pill {
    width: 25px;
    height: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.pill-icon-nav .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-nav .pill-half.red {
    background: #dc2626;
}

.pill-icon-nav .pill-half.blue {
    background: #3b82f6;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.user-info span {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.user-info small {
    color: #64748b;
    font-size: 0.8rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-menu-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #1e293b;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #334155;
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #334155;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: #f1f5f9;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #64748b;
    transition: 0.3s;
}

/* Responsive Design for Navbar */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .user-info {
        display: none;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0 0 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-logo .diji {
    color: #dc2626;
    font-size: 2rem;
    font-weight: 800;
}
.footer-logo .pharma {
    color: #3b82f6;
    font-size: 2rem;
    font-weight: 800;
}
.pill-icon-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pill-icon-footer .pill {
    width: 30px;
    height: 15px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
}
.pill-icon-footer .pill-half {
    width: 50%;
    height: 100%;
}
.pill-icon-footer .red {
    background: #dc2626;
}
.pill-icon-footer .blue {
    background: #3b82f6;
}
.footer-description {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fbbf24;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e2e8f0;
}
.contact-item i {
    color: #fbbf24;
    width: 20px;
}
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}
.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-bottom-links a:hover {
    color: #fbbf24;
}
/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-bottom-links {
        gap: 1rem;
    }
}

/* Fixed Profile Navigation Sidebar */
.profile-nav-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 200px;
}

.profile-nav-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.profile-nav-card h3 {
    color: #1e40af;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-nav-card h3 i {
    color: #3b82f6;
}

.profile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-nav-item:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.profile-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive Design for Profile Navigation */
@media (max-width: 1200px) {
    .profile-nav-sidebar {
        left: 10px;
        width: 180px;
    }
    
    .profile-nav-card {
        padding: 15px;
    }
    
    .profile-nav-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .profile-nav-sidebar {
        display: none;
    }
    
    .main-content, .main {
        margin-left: 0 !important;
    }
}

/* Main content margin adjustment for profile nav */
.main-content, .main {
    margin-left: 240px;
}

@media (max-width: 1200px) {
    .main-content, .main {
        margin-left: 210px;
    }
}

/* Avatar Letter Styles */
.avatar-letter {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-avatar .avatar-letter {
    font-size: 1rem;
}

.avatar .avatar-letter {
    font-size: 1.1rem;
}

.profile-avatar .avatar-letter {
    font-size: 2rem;
    font-weight: 700;
}

/* Ensure Perfect Circle Avatars */
.avatar, .user-avatar, .profile-avatar {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    min-width: var(--avatar-size);
    min-height: var(--avatar-size);
    max-width: var(--avatar-size);
    max-height: var(--avatar-size);
}

.avatar {
    --avatar-size: 35px;
}

.user-avatar {
    --avatar-size: 40px;
}

.profile-avatar {
    --avatar-size: 80px;
}