/**
 * Support Pin Module CSS Styling
 */

.supportpin-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.supportpin-widget h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.supportpin-widget > p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pin-section {
    margin-top: 1rem;
}

.pin-display {
    background: white;
    border: 2px solid #007bff;
    border-radius: 0.25rem;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    text-align: center;
    color: #007bff;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    user-select: all;
}

.pin-section .alert {
    margin-bottom: 1rem;
}

.pin-section .btn {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* Admin Panel Styles */
.supportpin-admin-verify {
    background: white;
    padding: 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.supportpin-admin-verify h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.supportpin-admin-verify form {
    max-width: 400px;
}

.supportpin-admin-verify .form-group {
    margin-bottom: 1rem;
}

.supportpin-admin-verify .form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.supportpin-admin-verify .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.supportpin-admin-verify .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.client-profile {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0.25rem;
}

.client-profile h3 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
}

.client-profile p {
    margin-bottom: 0.5rem;
    color: #333;
}

.client-profile strong {
    color: #555;
}

/* Logs Table */
.supportpin-admin-logs {
    background: white;
    padding: 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.supportpin-admin-logs h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.supportpin-admin-logs .table {
    margin-bottom: 0;
}

.supportpin-admin-logs .table thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
}

.supportpin-admin-logs .table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

/* Admin Settings */
.supportpin-admin-settings {
    background: white;
    padding: 2rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.supportpin-admin-settings h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.supportpin-admin-settings form {
    max-width: 500px;
}

.supportpin-admin-settings .form-group {
    margin-bottom: 1.5rem;
}

.supportpin-admin-settings .form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    display: block;
}

.supportpin-admin-settings .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    max-width: 300px;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .supportpin-widget {
        padding: 1rem;
    }

    .pin-display {
        font-size: 1.25rem;
        letter-spacing: 0.3rem;
    }

    .supportpin-admin-verify,
    .supportpin-admin-logs,
    .supportpin-admin-settings {
        padding: 1rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
