* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo {
    height: 60px;
    width: auto;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-title h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
}

.company-name {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-card {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Service Lines Section */
.service-lines {
    margin-bottom: 40px;
}

.service-lines h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.sl-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.sl-box {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sl-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sl1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-left: 5px solid #e74c3c;
}

.sl2 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 5px solid #3498db;
}

.sl3 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 5px solid #f39c12;
}

.sl-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.sl-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sl-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.sl-label {
    font-size: 1rem;
    color: #7f8c8d;
}

.sl-tcv {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tcv-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
}

.tcv-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Funnel Stages */
.funnel-stages {
    margin-bottom: 40px;
}

.funnel-stages h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.funnel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.stage-box {
    min-width: 180px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.stage-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stage-box.active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border: 2px solid #667eea;
}

.stage-tcv {
    font-size: 0.9rem;
    color: #27ae60;
    font-weight: 600;
    margin-top: 5px;
}

.stage-20 { background: #ffebee; border-top: 4px solid #f44336; }
.stage-40 { background: #fff3e0; border-top: 4px solid #ff9800; }
.stage-60 { background: #e8f5e8; border-top: 4px solid #4caf50; }
.stage-80 { background: #e3f2fd; border-top: 4px solid #2196f3; }
.stage-90 { background: #f3e5f5; border-top: 4px solid #9c27b0; }
.stage-all { background: #f8f9fa; border-top: 4px solid #667eea; }

.stage-box h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.stage-count {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Opportunities Section */
.opportunities-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
}

.add-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background: #219a52;
}

.search-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.filters {
    display: flex;
    gap: 15px;
}

.filters select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #667eea;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

tr:hover {
    background: #f8f9fa;
}

.sl-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.sl-badge.sl1 { background: #e74c3c; }
.sl-badge.sl2 { background: #3498db; }
.sl-badge.sl3 { background: #f39c12; }

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.view-btn {
    background: #667eea;
    color: white;
}

.view-btn:hover {
    background: #5a67d8;
}

.edit-btn {
    background: #f39c12;
    color: white;
}

.edit-btn:hover {
    background: #e67e22;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.remarks-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.detail-value {
    color: #555;
}

.remarks-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.remarks-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .sl-container {
        grid-template-columns: 1fr;
    }
    
    .funnel-container {
        flex-direction: column;
    }
    
    .stage-box {
        min-width: auto;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
/* Fo
rm Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#cancelBtn {
    background: #95a5a6;
    color: white;
}

#cancelBtn:hover {
    background: #7f8c8d;
}

#saveBtn {
    background: #27ae60;
    color: white;
}

#saveBtn:hover {
    background: #219a52;
}

/* Enhanced Modal Styles */
#editModal .modal-content {
    max-width: 900px;
    max-height: 90vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: none;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}/* F
ooter Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.footer-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-info p {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-center p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.separator {
    opacity: 0.6;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .company-logo {
        height: 50px;
    }
    
    .header-title h1 {
        font-size: 2rem;
    }
}/* Na
vigation Button Styles */
.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    border-color: white;
}

.nav-btn.logout-btn {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.nav-btn.logout-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.7);
}