/* ========================================
   Безопасность вашего компьютера (проверка портов)
   ======================================== */

.port-scaner-start {
    text-align: center;
    margin: 30px 0;
}

.port-scaner-wait {
    text-align: center;
    margin: 30px 0;
}

.loading-spinner {
    margin-bottom: 20px;
}

.loading-spinner i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 16px;
    color: #2c3e50;
    margin: 10px 0;
}

.scanning-info {
    font-size: 14px;
    color: #7f8c8d;
}

.port-scaner-results {
    margin-top: 30px;
}

.user-ip-info {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
}

.user-ip-info span {
    color: #e74c3c;
    font-weight: bold;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-table thead {
    background: #34495e;
    color: white;
}

.results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr.port-open {
    background: #ffe6e6;
}

.results-table tbody tr.port-open:hover {
    background: #ffd4d4;
}

.status-open {
    color: #e74c3c;
    font-weight: bold;
}

.status-open i {
    margin-right: 5px;
}

.status-closed {
    color: #27ae60;
    font-weight: bold;
}

.status-closed i {
    margin-right: 5px;
}

.scan-summary {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.summary-item {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-open {
    background: #ffe6e6;
    border-left: 4px solid #e74c3c;
}

.summary-open i {
    color: #e74c3c;
    font-size: 24px;
}

.summary-closed {
    background: #e8f8f0;
    border-left: 4px solid #27ae60;
}

.summary-closed i {
    color: #27ae60;
    font-size: 24px;
}

.summary-item strong {
    font-size: 20px;
}

.security-recommendation {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.security-recommendation i {
    color: #ffc107;
    margin-right: 10px;
    font-size: 18px;
}

.security-recommendation p {
    margin: 0;
    display: inline;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .results-table {
        font-size: 13px;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px;
    }
}

@media (max-width: 1200px) {
    .scan-summary {
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .results-table {
        font-size: 12px;
    }
}

@media (max-width: 810px) {
    .summary-item {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .results-table thead {
        display: none;
    }
    
    .results-table,
    .results-table tbody,
    .results-table tr,
    .results-table td {
        display: block;
        width: 100%;
    }
    
    .results-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .results-table td {
        text-align: left;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .results-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #34495e;
    }
    
    .results-table td:nth-child(1):before {
        content: "Порт:";
    }
    
    .results-table td:nth-child(2):before {
        content: "Название / Описание:";
    }
    
    .results-table td:nth-child(3):before {
        content: "Статус:";
    }
    
    .scan-summary {
        flex-direction: column;
    }
    
    .summary-item {
        min-width: 100%;
    }
}

@media (max-width: 650px) {
    .loading-spinner i {
        font-size: 36px;
    }
    
    .loading-spinner p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .port-scaner-results h2 {
        font-size: 20px;
    }
    
    .user-ip-info {
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .security-recommendation {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .loading-spinner i {
        font-size: 32px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .summary-item strong {
        font-size: 18px;
    }
}

@media (max-width: 375px) {
    .results-table td {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .port-scaner-results h2 {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .loading-spinner i {
        font-size: 28px;
    }
    
    .user-ip-info {
        font-size: 12px;
        padding: 10px;
    }
    
    .security-recommendation {
        font-size: 12px;
        padding: 10px;
    }
}

/* ========================================
   Паддинги для кнопок проверки портов
   ======================================== */

#checkPortsBtn {
    padding: 15px 40px;
}

#stopCheckBtn {
    padding: 12px 35px;
}

#verifyCaptcha {
    padding: 12px 30px;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    #checkPortsBtn {
        padding: 12px 35px;
    }
    
    #stopCheckBtn {
        padding: 10px 30px;
    }
    
    #verifyCaptcha {
        padding: 10px 25px;
    }
}

@media (max-width: 576px) {
    #checkPortsBtn {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    #stopCheckBtn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    #verifyCaptcha {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    #checkPortsBtn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    #stopCheckBtn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    #verifyCaptcha {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    #checkPortsBtn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    #stopCheckBtn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    #verifyCaptcha {
        padding: 8px 15px;
        font-size: 12px;
    }
}

