/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Input Section */
.input-section {
    margin-bottom: 40px;
}

.info-box {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box i {
    color: #3498db;
    font-size: 1.3rem;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.char-count {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #636e72;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #1c5d87);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

.btn-export {
    background: linear-gradient(to right, #27ae60, #219653);
    color: white;
}

.btn-export:hover:not(:disabled) {
    background: linear-gradient(to right, #219653, #1e7943);
    transform: translateY(-2px);
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.results-section {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.blocked-stat {
    color: #e74c3c;
}

.safe-stat {
    color: #27ae60;
}

.export-bar {
    text-align: right;
    margin-bottom: 20px;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #dfe6e9;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #f1f2f6;
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8f9fa;
}

td {
    padding: 18px 15px;
}

.empty-row td {
    text-align: center;
    padding: 60px;
    color: #95a5a6;
}

.empty-row i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-blocked {
    background: #ffeaea;
    color: #e74c3c;
}

.status-aman {
    background: #eaffea;
    color: #27ae60;
}

.status-error {
    background: #fff4e6;
    color: #f39c12;
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    th, td {
        padding: 12px 10px;
    }
}
