/* ===== Link Blocker Front-End Styles ===== */

.link-blocker-front {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header */
.lb-front-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
}

.lb-front-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* Table Wrapper */
.lb-front-table-wrapper {
    overflow-x: auto;
}

.lb-front-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-front-table thead {
    background: #f9fafb;
}

.lb-front-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.lb-front-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.lb-front-table tbody tr:last-child {
    border-bottom: none;
}

.lb-front-table tbody tr:hover {
    background: #f9fafb;
}

.lb-front-row-blocked {
    background: #fef2f2;
}

.lb-front-row-blocked:hover {
    background: #fee2e2 !important;
}

.lb-front-row-active {
    background: #f0fdf4;
}

.lb-front-row-active:hover {
    background: #dcfce7 !important;
}

.lb-front-table td {
    padding: 18px 20px;
}

/* Title Cell */
.lb-front-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-front-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.lb-front-title strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

/* Button Styles */
.lb-front-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.lb-front-btn-lock {
    background: #fbbf24;
    color: #78350f;
}

.lb-front-btn-lock:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.lb-front-btn-unlock {
    background: #60a5fa;
    color: white;
}

.lb-front-btn-unlock:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Custom Checkbox */
.lb-front-checkbox-cell {
    text-align: center;
}

.lb-checkbox-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.lb-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.lb-checkmark {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.lb-checkbox-container:hover .lb-checkmark {
    background-color: #d1d5db;
}

.lb-checkbox-container input:checked ~ .lb-checkmark {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.lb-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lb-checkbox-container input:checked ~ .lb-checkmark:after {
    display: block;
}

/* Notice Messages */
.lb-front-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: #78350f;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .link-blocker-front {
        margin: 20px;
        border-radius: 8px;
    }
    
    .lb-front-header {
        padding: 20px;
    }
    
    .lb-front-header h3 {
        font-size: 20px;
    }
    
    .lb-front-table th,
    .lb-front-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .lb-front-title {
        gap: 8px;
    }
    
    .lb-front-icon {
        font-size: 16px;
    }
    
    .lb-front-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lb-front-table th:nth-child(1),
    .lb-front-table td:nth-child(1) {
        display: table-cell;
    }
    
    .lb-front-table th,
    .lb-front-table td {
        padding: 10px;
    }
    
    .lb-front-title strong {
        font-size: 14px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-blocker-front {
    animation: slideIn 0.3s ease;
}