/**
 * Login Security Page Styles
 *
 * @package GuardDog
 * @since 1.8.0
 */

/* Admin page styling */
.guard-dog-email-provider-config {
    margin-top: 15px;
}

.guard-dog-inline-form {
    display: inline;
}

/* Form Sections */
.guard-dog-form-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guard-dog-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guard-dog-form-section h3 .dashicons {
    color: #0073aa;
}

/* Tab Content Styling */
.guard-dog-tab-content h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #23282d;
}

.guard-dog-tab-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

/* Form Styling */
.guard-dog-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.guard-dog-form-table th {
    text-align: left;
    padding: 12px 0;
    width: 200px;
    vertical-align: top;
    font-weight: 600;
    color: #23282d;
}

.guard-dog-form-table td {
    padding: 12px 0;
    vertical-align: top;
}

.guard-dog-form-table input[type="text"],
.guard-dog-form-table input[type="number"] {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.guard-dog-form-table input[type="checkbox"] {
    margin-right: 8px;
}

.guard-dog-form-table .description {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Notices */
.guard-dog-warning-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
    color: #856404;
}

.guard-dog-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.guard-dog-custom-url-display {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    color: #0073aa;
}

.guard-dog-custom-url-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Lockouts Table */
.guard-dog-lockouts-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guard-dog-lockouts-section h4 {
    margin-bottom: 15px;
    color: #23282d;
}

.guard-dog-lockouts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.guard-dog-lockouts-table th,
.guard-dog-lockouts-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.guard-dog-lockouts-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #23282d;
}

.guard-dog-no-lockouts {
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

/* 2FA Users Table */
.guard-dog-2fa-users-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guard-dog-2fa-users-section h4 {
    margin-bottom: 15px;
    color: #23282d;
}

.guard-dog-2fa-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.guard-dog-2fa-users-table th,
.guard-dog-2fa-users-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.guard-dog-2fa-users-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #23282d;
}

.guard-dog-2fa-status.enabled {
    color: #28a745;
    font-weight: 600;
}

.guard-dog-no-2fa-users {
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

/* 2FA Setup Help */
.guard-dog-2fa-setup-help {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.guard-dog-2fa-setup-help h4 {
    margin-bottom: 15px;
    color: #23282d;
}

.guard-dog-2fa-setup-help ol {
    margin-left: 20px;
    color: #666;
    line-height: 1.6;
}

.guard-dog-2fa-setup-help li {
    margin-bottom: 8px;
}

/* Sidebar Cards */
.guard-dog-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.guard-dog-card h3 {
    margin-bottom: 15px;
    color: #23282d;
    font-size: 16px;
}

/* Security Status */
.guard-dog-security-status-indicator {
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.guard-dog-security-status-indicator.secure {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.guard-dog-security-status-indicator.partial {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.guard-dog-security-status-indicator.insecure {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Feature Status */
.guard-dog-security-features {
    margin-bottom: 20px;
}

.guard-dog-feature-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
}

.guard-dog-feature-status.enabled {
    color: #28a745;
}

.guard-dog-feature-status.disabled {
    color: #dc3545;
}

.guard-dog-feature-status .dashicons {
    font-size: 16px;
}

/* Summary Sections */
.guard-dog-lockouts-summary,
.guard-dog-2fa-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.guard-dog-lockouts-summary h4,
.guard-dog-2fa-summary h4 {
    margin-bottom: 8px;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-lockouts-summary p,
.guard-dog-2fa-summary p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* Quick Actions */
.guard-dog-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.guard-dog-quick-actions .button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    justify-content: flex-start;
}

.guard-dog-quick-actions .dashicons {
    font-size: 16px;
}

/* Help Links */
.guard-dog-help-links h4 {
    margin-bottom: 10px;
    color: #23282d;
    font-size: 14px;
}

.guard-dog-help-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guard-dog-help-links li {
    margin-bottom: 8px;
}

.guard-dog-help-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.guard-dog-help-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guard-dog-tab-button {
        border-bottom: none;
        border-right: 2px solid transparent;
        text-align: left;
    }
    
    .guard-dog-tab-button.active {
        border-right-color: #0073aa;
        border-bottom-color: transparent;
    }
    
    .guard-dog-form-table th,
    .guard-dog-form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .guard-dog-form-table input[type="text"],
    .guard-dog-form-table input[type="number"] {
        width: 100%;
    }
} 

/* Dependent Fields */
.guard-dog-dependent-field.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.guard-dog-dependent-field.disabled input,
.guard-dog-dependent-field.disabled select {
    background-color: #f5f5f5;
    color: #999;
}

/* URL Preview */
.guard-dog-url-preview {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    color: #0073aa;
    border: 1px solid #e1e1e1;
}

/* Security Level Indicators */
.guard-dog-security-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guard-dog-security-level.low {
    background: #f8d7da;
    color: #721c24;
}

.guard-dog-security-level.medium {
    background: #fff3cd;
    color: #856404;
}

.guard-dog-security-level.high {
    background: #d4edda;
    color: #155724;
} 
