/* Coordinator Dashboard Specific Styles */

/* Ensure consistent background */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh;
}

/* Main coordinator container */
.coordinator-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header actions styling */
.header-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Criteria information section */
.criteria-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.criteria-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #e67e22, #d35400);
}

.criteria-info h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.criteria-info h2::before {
    content: '📊';
    font-size: 1.2em;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.criteria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.criteria-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.criteria-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.criteria-value {
    font-weight: 700;
    color: #3498db;
    font-size: 1em;
    text-align: right;
}

/* Calculators section */
.calculators-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.calculators-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad, #7d3c98);
}

.calculators-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculators-section h2::before {
    content: '🧮';
    font-size: 1.2em;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.calculator-card {
    background: rgba(155, 89, 182, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    background: rgba(155, 89, 182, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.15);
}

.calculator-header {
    margin-bottom: 20px;
}

.calculator-header h3 {
    color: #8e44ad;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-header p {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(155, 89, 182, 0.2);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-style: italic;
}

.calculator-result.has-result {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #27ae60;
    font-style: normal;
    font-weight: 500;
}

.calculator-result.has-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    font-style: normal;
}

.result-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #9b59b6;
    text-align: center;
}

.result-item .label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 5px;
    display: block;
}

.result-item .value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}

.calculate-btn.secondary {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn.secondary:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
}

/* Sellers section */
.sellers-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sellers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60, #229954);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2::before {
    content: '👥';
    font-size: 1.2em;
}

.add-seller-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-seller-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.add-seller-btn:active {
    transform: translateY(0);
}

/* Sellers container - responsive grid */
.sellers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Individual seller card */
.seller-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.seller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #bdc3c7;
    transition: all 0.3s ease;
}

/* Seller card states */
.seller-card.qualified::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.seller-card.unqualified::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.seller-card.pending::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.seller-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.seller-card.qualified {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.02);
}

.seller-card.unqualified {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
}

.seller-card.pending {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.02);
}

/* Seller card header */
.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.seller-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-number {
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
}

.remove-seller-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-seller-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Seller form fields */
.seller-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seller-form .form-group {
    margin-bottom: 0;
}

.seller-form label {
    font-size: 0.9em;
    margin-bottom: 6px;
}

.seller-form input[type="number"] {
    padding: 12px 14px;
    font-size: 0.95em;
}

/* Status indicator */
.seller-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    display: none;
}

.seller-status.qualified {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: block;
}

.seller-status.unqualified {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
    display: block;
}

.seller-status.pending {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border: 1px solid rgba(243, 156, 18, 0.3);
    display: block;
}

/* Team actions */
.team-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.team-actions .calculate-btn {
    min-width: 300px;
    font-size: 1.1em;
    padding: 18px 30px;
}

/* Results section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9b59b6, #8e44ad, #7d3c98);
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-section h2::before {
    content: '💰';
    font-size: 1.2em;
}

/* Team summary */
.team-summary {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.team-summary h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-summary h3::before {
    content: '📈';
    font-size: 1em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.summary-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.summary-value {
    font-weight: 700;
    color: #3498db;
    font-size: 1em;
}

/* Commission breakdown */
.commission-breakdown {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(46, 204, 113, 0.05);
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
}

.commission-breakdown h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.commission-breakdown h3::before {
    content: '🧮';
    font-size: 1em;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.breakdown-item.highlight {
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    font-weight: 700;
}

.breakdown-item.highlight:hover {
    background: rgba(46, 204, 113, 0.15);
    transform: scale(1.02);
}

.breakdown-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
}

.breakdown-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1em;
}

.breakdown-item.highlight .breakdown-value {
    color: #27ae60;
    font-size: 1.3em;
}

/* Result messages */
.result-messages {
    margin-bottom: 25px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.result-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.result-message.success::before {
    content: '✅';
    font-size: 1.2em;
}

.result-message.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.result-message.warning::before {
    content: '⚠️';
    font-size: 1.2em;
}

.result-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.result-message.error::before {
    content: '❌';
    font-size: 1.2em;
}

/* Sellers status section */
.sellers-status {
    padding: 25px;
    background: rgba(149, 165, 166, 0.05);
    border-radius: 12px;
    border-left: 4px solid #95a5a6;
}

.sellers-status h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sellers-status h3::before {
    content: '📋';
    font-size: 1em;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.status-item.qualified {
    border-left: 4px solid #2ecc71;
}

.status-item.unqualified {
    border-left: 4px solid #e74c3c;
}

.status-seller-name {
    font-weight: 600;
    color: #2c3e50;
}

.status-details {
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.qualified {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-badge.unqualified {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state-description {
    font-size: 1em;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive design for coordinator dashboard */
@media (max-width: 1200px) {
    .sellers-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .criteria-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .coordinator-container {
        gap: 25px;
    }
    
    .criteria-info,
    .sellers-section,
    .results-section {
        padding: 25px 20px;
    }
    
    .sellers-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seller-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .add-seller-btn {
        width: 100%;
        justify-content: center;
    }
    
    .criteria-grid,
    .summary-grid,
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .team-actions .calculate-btn {
        width: 100%;
        min-width: auto;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coordinator-container {
        gap: 20px;
    }
    
    .criteria-info,
    .sellers-section,
    .results-section {
        padding: 20px 15px;
    }
    
    .seller-card {
        padding: 15px;
    }
    
    .seller-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .remove-seller-btn {
        align-self: flex-end;
        width: fit-content;
    }
    
    .criteria-item,
    .summary-item,
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .criteria-value,
    .summary-value,
    .breakdown-value {
        text-align: left;
        font-size: 1.1em;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .status-details {
        text-align: left;
        width: 100%;
    }
}

/* Print styles */
@media print {
    .header-actions,
    .add-seller-btn,
    .remove-seller-btn,
    .team-actions {
        display: none !important;
    }
    
    .coordinator-container {
        background: white;
    }
    
    .criteria-info,
    .sellers-section,
    .results-section {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .seller-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Dark mode support for coordinator dashboard */
@media (prefers-color-scheme: dark) {
    .criteria-info,
    .sellers-section,
    .results-section {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }
    
    .seller-card {
        background: rgba(52, 73, 94, 0.9);
        color: #ecf0f1;
        border-color: #7f8c8d;
    }
    
    .criteria-item,
    .summary-item,
    .breakdown-item,
    .status-item {
        background: rgba(52, 73, 94, 0.7);
    }
    
    .criteria-label,
    .summary-label,
    .breakdown-label,
    .status-seller-name {
        color: #bdc3c7;
    }
    
    .team-summary,
    .commission-breakdown,
    .sellers-status {
        background: rgba(52, 73, 94, 0.3);
    }
}
/*
 Enhanced Visual Feedback and Status Indicators */

/* Interactive hover states for all clickable elements */
.add-seller-btn:focus-visible,
.remove-seller-btn:focus-visible,
.calculate-btn:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Enhanced seller card interactive states */
.seller-card {
    cursor: default;
    user-select: none;
}

.seller-card:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Input field enhanced states */
.seller-form input[type="number"]:hover:not(:focus) {
    border-color: #95a5a6;
    background: rgba(255, 255, 255, 0.95);
}

.seller-form input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Validation states for seller inputs */
.seller-form .form-group.valid input[type="number"] {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.seller-form .form-group.invalid input[type="number"] {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: inputShake 0.3s ease-in-out;
}

.seller-form .form-group.warning input[type="number"] {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* Visual indicators for minimum criteria */
.criteria-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.criteria-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    transition: all 0.3s ease;
}

.criteria-indicator.met::after {
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.criteria-indicator.not-met::after {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.criteria-indicator.warning::after {
    background: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

/* Minimum criteria tooltips */
.criteria-tooltip {
    position: relative;
    cursor: help;
}

.criteria-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.criteria-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.criteria-tooltip:hover::before,
.criteria-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Progress indicators for seller qualification */
.qualification-progress {
    margin-top: 15px;
    padding: 12px;
    background: rgba(149, 165, 166, 0.1);
    border-radius: 8px;
    display: none;
}

.qualification-progress.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    color: #6c757d;
    font-weight: 500;
}

.progress-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-value.met {
    color: #27ae60;
}

.progress-value.not-met {
    color: #c0392b;
}

.progress-value.warning {
    color: #d68910;
}

.progress-value::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Enhanced button states */
.add-seller-btn:disabled,
.remove-seller-btn:disabled,
.calculate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.add-seller-btn:not(:disabled):active {
    transform: translateY(1px) scale(0.98);
}

.remove-seller-btn:not(:disabled):active {
    transform: scale(0.95);
}

/* Loading states for calculations */
.seller-card.calculating {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.seller-card.calculating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #e1e8ed;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* Success/Error animations for results */
.result-message {
    transform: translateY(-10px);
    opacity: 0;
    animation: resultSlideIn 0.4s ease-out forwards;
}

@keyframes resultSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result-message.success {
    animation: resultSlideIn 0.4s ease-out forwards, successPulse 0.6s ease-in-out 0.4s;
}

.result-message.error {
    animation: resultSlideIn 0.4s ease-out forwards, errorShake 0.5s ease-in-out 0.4s;
}

/* Commission value highlight animation */
.breakdown-item.highlight .breakdown-value {
    animation: valueHighlight 2s ease-in-out infinite;
}

@keyframes valueHighlight {
    0%, 100% { 
        color: #27ae60;
        text-shadow: none;
    }
    50% { 
        color: #2ecc71;
        text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    }
}

/* Interactive criteria items */
.criteria-item:active {
    transform: translateX(3px) scale(0.98);
}

.summary-item:active,
.breakdown-item:active {
    transform: translateX(2px) scale(0.99);
}

/* Focus management for accessibility */
.seller-card:focus-within .seller-title {
    color: #3498db;
}

.seller-form input[type="number"]:focus + .help-text {
    color: #3498db;
    font-weight: 500;
}

/* Enhanced status badges with animations */
.status-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.qualified:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: scale(1.05);
}

.status-badge.unqualified:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: scale(1.05);
}

/* Real-time validation feedback */
.form-group.validating input[type="number"] {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.form-group.validating::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f39c12;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success checkmark animation */
.form-group.valid::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2em;
    animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: translateY(-50%) scale(0);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* Error X animation */
.form-group.invalid::after {
    content: '✗';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
    animation: errorShake 0.3s ease-out;
}

/* Warning indicator */
.form-group.warning::after {
    content: '⚠';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1em;
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Enhanced empty state with animation */
.empty-state {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Micro-interactions for better UX */
.criteria-value,
.summary-value,
.breakdown-value {
    transition: all 0.3s ease;
}

.criteria-item:hover .criteria-value,
.summary-item:hover .summary-value,
.breakdown-item:hover .breakdown-value {
    transform: scale(1.05);
    font-weight: 800;
}

/* Enhanced focus indicators for better accessibility */
.seller-form input[type="number"]:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode enhancements */
@media (prefers-contrast: high) {
    .seller-card.qualified {
        border-width: 3px;
    }
    
    .seller-card.unqualified {
        border-width: 3px;
    }
    
    .status-badge {
        border: 2px solid currentColor;
    }
    
    .criteria-indicator::after {
        border: 2px solid currentColor;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .seller-card,
    .criteria-item,
    .summary-item,
    .breakdown-item,
    .status-item,
    .result-message,
    .add-seller-btn,
    .remove-seller-btn,
    .calculate-btn {
        transition: none !important;
        animation: none !important;
    }
    
    .seller-card:hover,
    .criteria-item:hover,
    .summary-item:hover,
    .breakdown-item:hover {
        transform: none !important;
    }
}

/* Print-friendly status indicators */
@media print {
    .seller-card.qualified::after {
        content: '✓ QUALIFICADO';
        position: absolute;
        top: 10px;
        right: 10px;
        background: #2ecc71;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.7em;
        font-weight: bold;
    }
    
    .seller-card.unqualified::after {
        content: '✗ NÃO QUALIFICADO';
        position: absolute;
        top: 10px;
        right: 10px;
        background: #e74c3c;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.7em;
        font-weight: bold;
    }
}
/* M
odal de Configuração dos Critérios */
.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.config-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.config-btn:active {
    transform: translateY(0);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #ecf0f1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '⚙️';
    font-size: 1.2em;
}

.modal-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Config Sections */
.config-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(52, 152, 219, 0.03);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-section h4 {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-section:nth-child(1) h4::before {
    content: '🎯';
}

.config-section:nth-child(2) h4::before {
    content: '📊';
}

.config-section:nth-child(3) h4::before {
    content: '💰';
}

/* Input Groups in Modal */
.modal-body .input-group {
    margin-bottom: 20px;
}

.modal-body .input-group:last-child {
    margin-bottom: 0;
}

.modal-body .input-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.modal-body .input-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.modal-body .input-group input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.modal-body .input-group input[type="number"]:hover:not(:focus) {
    border-color: #bdc3c7;
}

.modal-body .help-text {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 6px;
    line-height: 1.4;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px 30px;
    border-top: 2px solid #ecf0f1;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0 0 16px 16px;
    flex-wrap: wrap;
}

.modal-footer button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.3);
}

.btn-secondary:first-child {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.btn-secondary:first-child:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.modal-footer button:active {
    transform: translateY(0);
}

/* Validation States in Modal */
.modal-body .input-group.valid input[type="number"] {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.modal-body .input-group.invalid input[type="number"] {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: inputShake 0.3s ease-in-out;
}

.modal-body .input-group.warning input[type="number"] {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

/* Success/Error Messages in Modal */
.modal-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.modal-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.modal-message.success::before {
    content: '✅';
}

.modal-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.modal-message.error::before {
    content: '❌';
}

.modal-message.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.modal-message.warning::before {
    content: '⚠️';
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-header {
        padding-top: 20px;
        padding-bottom: 15px;
    }
    
    .modal-body {
        padding-top: 25px;
        padding-bottom: 25px;
    }
    
    .modal-footer {
        padding-top: 15px;
        padding-bottom: 20px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        min-width: auto;
    }
    
    .config-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .criteria-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .config-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.2em;
    }
    
    .config-section h4 {
        font-size: 1.1em;
    }
    
    .modal-body .input-group label {
        font-size: 0.9em;
    }
    
    .modal-body .help-text {
        font-size: 0.8em;
    }
    
    .modal-footer button {
        padding: 14px 16px;
        font-size: 0.9em;
    }
}

/* Dark Mode Support for Modal */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .modal-header {
        background: linear-gradient(135deg, #34495e, #2c3e50);
        border-bottom-color: #4a5f7a;
    }
    
    .modal-header h3 {
        color: #ecf0f1;
    }
    
    .modal-footer {
        background: rgba(52, 73, 94, 0.5);
        border-top-color: #4a5f7a;
    }
    
    .config-section {
        background: rgba(52, 152, 219, 0.1);
    }
    
    .config-section h4 {
        color: #ecf0f1;
    }
    
    .modal-body .input-group label {
        color: #bdc3c7;
    }
    
    .modal-body .input-group input[type="number"] {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .modal-body .input-group input[type="number"]:focus {
        border-color: #3498db;
        background: #2c3e50;
    }
    
    .modal-body .help-text {
        color: #95a5a6;
    }
}

/* High Contrast Mode for Modal */
@media (prefers-contrast: high) {
    .modal-content {
        border: 3px solid #000;
    }
    
    .modal-header {
        border-bottom-width: 3px;
        border-bottom-color: #000;
    }
    
    .modal-footer {
        border-top-width: 3px;
        border-top-color: #000;
    }
    
    .config-section {
        border-left-width: 6px;
    }
    
    .modal-body .input-group input[type="number"] {
        border-width: 3px;
    }
    
    .modal-footer button {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion for Modal */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-content,
    .modal-message {
        animation: none !important;
    }
    
    .modal-footer button:hover,
    .config-btn:hover,
    .modal-close:hover {
        transform: none !important;
    }
}

/* Print Styles for Modal (hide when printing) */
@media print {
    .modal-overlay {
        display: none !important;
    }
}

/* Result messages styling */
.result-messages {
    margin-top: 20px;
}

.result-success,
.result-warning,
.result-error,
.result-recovery,
.result-critical-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.result-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.result-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-recovery {
    background-color: #e2f3ff;
    border: 1px solid #b8daff;
    color: #004085;
}

.result-critical-error {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Enhanced error type styling */
.error-empty-team {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #0056b3;
}

.error-incomplete-data {
    background-color: #fff8e1;
    border-color: #ffecb3;
    color: #e65100;
}

.error-validation {
    background-color: #fff3e0;
    border-color: #ffcc80;
    color: #ef6c00;
}

.error-no-qualified {
    background-color: #fce4ec;
    border-color: #f8bbd9;
    color: #880e4f;
}

.error-processing {
    background-color: #f3e5f5;
    border-color: #ce93d8;
    color: #4a148c;
}

.error-team-large {
    background-color: #e8f5e8;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.result-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.result-content {
    flex: 1;
}

.result-message {
    margin-bottom: 8px;
}

/* Error suggestions styling */
.error-suggestions {
    margin-top: 12px;
}

.error-suggestions details {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px;
}

.error-suggestions summary {
    cursor: pointer;
    font-weight: 500;
    padding: 4px 0;
    user-select: none;
}

.error-suggestions summary:hover {
    color: #0056b3;
}

.error-suggestions ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.error-suggestions li.separator {
    list-style: none;
    margin: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Recovery options styling */
.recovery-details {
    margin: 12px 0;
}

.recovery-details details {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 8px;
}

.recovery-details ul {
    margin: 8px 0;
    padding-left: 20px;
}

.recovery-details li {
    margin-bottom: 4px;
}

.recovery-actions,
.error-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recovery-actions button,
.error-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Seller validation message styling */
.seller-validation-message {
    margin-top: 8px;
    padding: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 12px;
}

.seller-validation-message small {
    display: block;
    line-height: 1.3;
}/*
 Responsive Calculators */
@media (max-width: 768px) {
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-card {
        padding: 20px;
    }
    
    .result-breakdown {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .calculators-section {
        padding: 20px 15px;
    }
    
    .calculator-header h3 {
        font-size: 1.1em;
    }
    
    .calculator-header p {
        font-size: 0.85em;
    }
    
    .calculator-card {
        padding: 15px;
    }
    
    .calculate-btn.secondary {
        padding: 14px 20px;
        font-size: 16px;
    }
}/*
 Additional styles for better functionality */

/* Config button styling */
.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.config-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.config-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

/* Add seller button styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.add-seller-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.add-seller-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* Team actions styling */
.team-actions {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.calculate-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    margin-bottom: 10px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Results section styling */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b, #a93226);
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-section h2::before {
    content: '📊';
    font-size: 1.2em;
}

/* Summary and breakdown grids */
.summary-grid,
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.summary-item,
.breakdown-item {
    background: rgba(52, 152, 219, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-item.highlight {
    background: rgba(46, 204, 113, 0.1);
    border-left-color: #27ae60;
}

.summary-label,
.breakdown-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.summary-value,
.breakdown-value {
    font-weight: 700;
    color: #3498db;
    font-size: 1em;
}

.breakdown-item.highlight .breakdown-value {
    color: #27ae60;
}

/* Error and success messages */
.result-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.result-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.result-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.error-actions {
    margin-top: 15px;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* Input validation styles */
.input-error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

.input-warning {
    border-color: #f39c12 !important;
    background-color: rgba(243, 156, 18, 0.05) !important;
}

/* Status indicators */
.seller-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.status-qualified {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-unqualified {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-incomplete {
    background: rgba(149, 165, 166, 0.2);
    color: #7f8c8d;
}

.status-error {
    background: rgba(231, 76, 60, 0.3);
    color: #c0392b;
}/* 
Seller row styling */
.seller-row {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.seller-row:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.seller-header h3 {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.seller-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-seller-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-seller-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.seller-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.input-group input {
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.help-text {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

.seller-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(149, 165, 166, 0.1);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Result message styling */
.result-warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.result-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .seller-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .seller-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .seller-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .summary-grid,
    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .seller-row {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .input-group input {
        padding: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .calculate-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}