/* Plugin Tra cứu phạt nguội hotro.me - CSS */

.tcpn-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.tcpn-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #FF006A;
    position: relative;
}

.tcpn-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FF006A, #FF4081);
    border-radius: 2px;
}

.tcpn-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tcpn-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px;
    font-style: italic;
}

.tcpn-form-container {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.tcpn-form {
    background: transparent;
    padding: 0;
}

.tcpn-input-group {
    display: flex;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(255, 0, 106, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 2px solid #FF006A;
    transition: all 0.3s ease;
}

.tcpn-input-group:hover {
    box-shadow: 0 12px 35px rgba(255, 0, 106, 0.25);
    transform: translateY(-2px);
}

.tcpn-input-group:focus-within {
    box-shadow: 0 15px 40px rgba(255, 0, 106, 0.3);
    transform: translateY(-3px);
}

.tcpn-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

.tcpn-input::placeholder {
    color: #bdc3c7;
    font-weight: 400;
}

.tcpn-input:focus {
    background: #fff;
    color: #2c3e50;
}

.tcpn-btn-search {
    background: linear-gradient(135deg, #FF006A, #FF4081);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tcpn-btn-search::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;
}

.tcpn-btn-search:hover {
    background: linear-gradient(135deg, #e6005e, #ff3674);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 106, 0.4);
}

.tcpn-btn-search:hover::before {
    left: 100%;
}

.tcpn-btn-search:active {
    transform: translateY(0);
}

.tcpn-search-icon {
    margin-right: 8px;
    font-size: 18px;
}

.tcpn-radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.tcpn-radio-label {
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.tcpn-radio-options {
    display: flex;
    gap: 25px;
}

.tcpn-radio-item {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    background: white;
    font-weight: 500;
}

.tcpn-radio-item:hover {
    background: #f8f9fa;
    border-color: #FF006A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 106, 0.2);
}

.tcpn-radio-item input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #FF006A;
    cursor: pointer;
}

.tcpn-radio-item input[type="radio"]:checked + * {
    color: #FF006A;
    font-weight: 600;
}

.tcpn-radio-item input[type="radio"]:checked {
    background-color: #FF006A;
    border-color: #FF006A;
}

.tcpn-radio-selected {
    background: linear-gradient(135deg, #FF006A, #FF4081);
    color: white !important;
    border-color: #FF006A;
}

.tcpn-radio-selected input[type="radio"] {
    accent-color: white;
}

/* Loading styles */
.tcpn-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.tcpn-loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 2px solid #FF006A;
}

.tcpn-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FF006A;
    border-radius: 50%;
    animation: tcpn-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.tcpn-loading-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

@keyframes tcpn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results styles */
.tcpn-results {
    margin-top: 40px;
}

.tcpn-results-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.tcpn-results-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px;
    text-align: center;
}

.tcpn-results-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.tcpn-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
}

.tcpn-stat-item {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.tcpn-stat-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.tcpn-stat-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.tcpn-violation-item {
    margin: 25px;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tcpn-violation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tcpn-violation-item p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-size: 15px;
}

.tcpn-violation-item p:last-child {
    margin-bottom: 0;
}

.tcpn-violation-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.tcpn-violation-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: #f39c12;
    color: #8b4513;
}

.tcpn-violation-success {
    background: linear-gradient(135deg, #d1f2eb, #a8e6cf);
    border-left-color: #27ae60;
    color: #1e6b3e;
}

.tcpn-violation-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #2196f3;
    color: #1565c0;
}

/* Error message */
.tcpn-error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #f44336;
    font-weight: 500;
    font-size: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .tcpn-container {
        margin: 10px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .tcpn-title {
        font-size: 20px;
    }
    
    .tcpn-form-container {
        padding: 20px;
    }
    
    .tcpn-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .tcpn-input {
        border-radius: 12px;
        border: none;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .tcpn-btn-search {
        border-radius: 12px;
        width: 100%;
        padding: 15px;
    }
    
    .tcpn-radio-group {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px;
    }
    
    .tcpn-radio-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tcpn-stats {
        grid-template-columns: 1fr;
    }
    
    .tcpn-stat-warning {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .tcpn-violation-item {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tcpn-container {
        margin: 5px;
        padding: 15px;
    }
    
    .tcpn-title {
        font-size: 18px;
    }
    
    .tcpn-input, .tcpn-btn-search {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .tcpn-radio-options {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .tcpn-radio-item {
        justify-content: center;
        width: 100%;
    }
}

/* Advanced animations */
@keyframes tcpn-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcpn-violation-item {
    animation: tcpn-fadeInUp 0.6s ease-out;
}

.tcpn-container {
    animation: tcpn-fadeInUp 0.8s ease-out;
}

/* Hover effects */
.tcpn-input:focus {
    animation: tcpn-pulse 0.3s ease-in-out;
}

@keyframes tcpn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
} 