* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.main-content {
    padding: 30px;
}

.color-palette {
    margin-bottom: 30px;
}

.color-palette h3 {
    margin-bottom: 15px;
    color: #333;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.color-item {
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

.color-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.color-item.active {
    border: 3px solid #333;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.preview-section {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.preview-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-label {
    font-weight: 600;
    color: #333;
}

.color-preview {
    width: 50px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.preview-message {
    margin-bottom: 15px;
}

.info-section {
    background: #f9f9f9;
    padding: 25px 30px;
    border-top: 2px solid #e0e0e0;
}

.info-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.info-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-section li {
    margin-bottom: 8px;
    color: #555;
}

.info-section p {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
}

.alert {
    padding: 15px 20px;
    margin: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 20px;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Tambahkan di akhir file style.css */

/* Tab Navigation */
.tab-container {
    background: #f5f5f5;
    padding: 10px 20px 0;
}

.tabs {
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    background: white;
}

.tab-content.active {
    display: block;
}

/* Reputation Checker */
.reputation-checker {
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.reputation-result {
    margin-top: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reputation-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid;
}

.reputation-card.excellent { border-left-color: #25D366; }
.reputation-card.good { border-left-color: #4ECDC4; }
.reputation-card.fair { border-left-color: #FFE66D; }
.reputation-card.poor { border-left-color: #FF8B94; }
.reputation-card.critical { border-left-color: #FF6B6B; }

.reputation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reputation-header h4 {
    font-size: 18px;
    color: #333;
}

.reputation-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.score-max {
    font-size: 16px;
    color: #999;
}

.reputation-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.excellent { background: #25D36620; color: #155724; }
.status-badge.good { background: #4ECDC420; color: #0c5460; }
.status-badge.fair { background: #FFE66D20; color: #856404; }
.status-badge.poor { background: #FF8B9420; color: #721c24; }
.status-badge.critical { background: #FF6B6B20; color: #721c24; }

.progress-bar {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.progress-fill.excellent { background: #25D366; }
.progress-fill.good { background: #4ECDC4; }
.progress-fill.fair { background: #FFE66D; }
.progress-fill.poor { background: #FF8B94; }
.progress-fill.critical { background: #FF6B6B; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.detail-box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.detail-box .label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.detail-box .value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.recommendations {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.recommendations h5 {
    margin-bottom: 10px;
    color: #333;
}

.recommendations ul {
    margin-left: 20px;
}

.recommendations li {
    margin-bottom: 5px;
    color: #555;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-small {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-small:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Bulk Check */
.bulk-check-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.bulk-results-table {
    margin-top: 20px;
    overflow-x: auto;
}

.bulk-results-table table {
    width: 100%;
    border-collapse: collapse;
}

.bulk-results-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.bulk-results-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.score-badge.excellent { background: #25D366; color: white; }
.score-badge.good { background: #4ECDC4; color: white; }
.score-badge.fair { background: #FFE66D; color: #333; }
.score-badge.poor { background: #FF8B94; color: white; }
.score-badge.critical { background: #FF6B6B; color: white; }

.status-text {
    font-weight: 500;
}

.status-text.excellent { color: #155724; }
.status-text.good { color: #0c5460; }
.status-text.fair { color: #856404; }
.status-text.poor { color: #721c24; }
.status-text.critical { color: #721c24; }

.bulk-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.warning {
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

/* Reputation Info */
.reputation-info {
    margin-top: 40px;
}

.reputation-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.indicator {
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
}

.indicator-badge {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
}

.indicator strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.indicator p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.error-message {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 10px;
    }
    
    .reputation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .bulk-results-table {
        font-size: 14px;
    }
}

/* Calculator Styles */
.calculator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.calc-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calc-card h4 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.limit-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border-left: 5px solid;
    animation: slideIn 0.5s ease;
}

.limit-card.excellent { border-left-color: #25D366; }
.limit-card.good { border-left-color: #4ECDC4; }
.limit-card.fair { border-left-color: #FFE66D; }
.limit-card.poor { border-left-color: #FF8B94; }
.limit-card.critical { border-left-color: #FF6B6B; }

.limit-score {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.score-label {
    font-size: 14px;
    color: #666;
}

.score-value-large {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.limit-icon {
    font-size: 24px;
}

.limit-info {
    display: flex;
    flex-direction: column;
}

.limit-label {
    font-size: 12px;
    color: #666;
}

.limit-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.limit-recommendation {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.limit-recommendation h6 {
    margin-bottom: 10px;
    color: #333;
}

.limit-recommendation ul {
    list-style: none;
    padding: 0;
}

.limit-recommendation li {
    padding: 5px 0;
    color: #555;
}

.limit-warning {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.warning-safe {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.warning-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.warning-caution {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.warning-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-critical {
    background: #dc3545;
    color: white;
    border: 1px solid #c82333;
}

.limit-actions {
    display: flex;
    gap: 10px;
}

/* Limits Table */
.limits-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.limits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.limits-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.limits-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.limits-table tbody tr:hover {
    background: #f5f5f5;
}

.limit-excellent { background: #d4edda20; }
.limit-good { background: #d1ecf120; }
.limit-fair { background: #fff3cd20; }
.limit-poor { background: #f8d7da20; }
.limit-critical { background: #dc354510; }

/* Bulk Limits Table */
.bulk-limits-table {
    overflow-x: auto;
    margin-top: 20px;
}

.bulk-limits-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bulk-limits-table th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

.bulk-limits-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.limit-value-cell {
    font-weight: 600;
    color: #667eea;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.summary-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.summary-item span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.summary-item strong {
    font-size: 20px;
    color: #333;
}

.optimize-note {
    padding: 10px;
    background: #e7f3ff;
    border-radius: 5px;
    color: #004085;
    font-size: 13px;
}

.risk-alert {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    color: #856404;
}

/* Scheduler */
.scheduler-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.schedule-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.timeline-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.timeline-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-time {
    min-width: 80px;
    font-weight: 600;
    color: #667eea;
}

.timeline-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-number {
    font-weight: 600;
    color: #333;
}

.batch-count {
    color: #666;
}

.batch-duration {
    color: #999;
    font-size: 12px;
}

.schedule-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body h5 {
    margin: 20px 0 10px;
    color: #333;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    margin-bottom: 5px;
    color: #555;
}

.modal-warning {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

/* Tips Section */
.tips-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.tips-section h5 {
    margin-bottom: 15px;
    color: #333;
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

.tips-section li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .limits-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-info {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}